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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 17:30, KaleahV
List at least one thing to check for when you're checking the clarity and professionalism of a document.
Answers: 1
image
Computers and Technology, 24.06.2019 23:00, amandajennings01
Why is it preferable to code web pages in html format? a. to create more lines code b. to apply general formatting rules c. to display properly as search results in all browsers d. to add meaning to the document
Answers: 1
image
Computers and Technology, 25.06.2019 06:30, yushan2751
During which stage do you think is the best time for a company to purchase an emerging technology
Answers: 1
image
Computers and Technology, 25.06.2019 07:00, awuekure
The graph shows the number of chapters sarah read in a book each day of a week
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 in other subjects:

Konu
English, 08.07.2019 14:00