subject

In this lab, you add a loop and the statements that make up the loop body to a python program. when completed, the program should calculate two totals: the number of left-handed people and the number of right-handed people in your class. your loop should execute until the user enters the character x instead of a l for left-handed or a r for right-handed. the inputs for this program are as follows: r, r, r, l, l, l, r, l, r, r, l, x. note that variables have been assigned for you, and the input and output statements have been written for you.

instructions

make sure the file leftorright. py is selected and open.

write a loop and a loop body that allows you to calculate a total of left-handed and a total of right-handed people in your class.

execute the program using the "run code" bottom at the bottom of the screen. input the data listed above and verify that the output is correct.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:00
Hyperactive media sales has 10 windows 7 laptop computers used by sales-people in the organization. each laptop computer has several customized applications that are used during the sales process as well as customer relationship management software. all of the applications on the laptops are difficult to configure and have large data files. if all of the laptops have current hardware, what is the easiest way to install windows 10 on them?
Answers: 1
question
Computers and Technology, 22.06.2019 17:40
Consider the simple 3-station assembly line illustrated below, where the 2 machines at station 1 are parallel, i.e., the product only needs to go through one of the 2 machines before proceeding to station 2.what is the throughput time of this process?
Answers: 2
question
Computers and Technology, 22.06.2019 21:00
The average cost of one year at a private college in 2012-2013 is $43,289. the average grant aid received by a student at a private college in 2012-2013 is $15,680.   what is the average student contribution for one year at a private college in 2012-2013?
Answers: 3
question
Computers and Technology, 23.06.2019 18:00
What can a word user do with the customize ribbon dialog box? check all that apply. minimize the ribbon add a new tab to the ribbon remove a group from a tab add a group to a tab choose which styles appear choose which fonts appear choose tools to appear in a group
Answers: 1
You know the right answer?
In this lab, you add a loop and the statements that make up the loop body to a python program. when...
Questions
question
Mathematics, 19.07.2019 18:00
question
Mathematics, 19.07.2019 18:00
Questions on the website: 13722363