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:30
Melissa needs to add a topic to an email that she will send to her teacher. choose the name of the field where she should type her topic.
Answers: 2
question
Computers and Technology, 22.06.2019 15:30
Which of the following examples has four beats in each measure?
Answers: 2
question
Computers and Technology, 22.06.2019 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 22.06.2019 16:20
Octothorpe is another name for what common computer keyboard symbol?
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
Biology, 15.12.2021 22:10
question
Mathematics, 15.12.2021 22:10
question
Mathematics, 15.12.2021 22:10
question
Social Studies, 15.12.2021 22:10
question
Mathematics, 15.12.2021 22:10
Questions on the website: 13722363