Computers and Technology

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.

answer
Answers: 1

Similar questions

Do you know the correct 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
Mathematics, 04.03.2021 01:00