LeftorRight.py - rightTotal = 0 leftTotal = 0 leftOrRight =...

This preview shows page 1 out of 1 page.

The preview shows page 1 - 1 out of 1 page.
rightTotal = 0leftTotal = 0leftOrRight = input("Enter an L if you are left-handed, an R if you are right-handed or X to quit.")while leftOrRight != "X":if leftOrRight == "L":leftTotal += 1elif leftOrRight == "R":rightTotal += 1leftOrRight = input("Enter an L if you are left-handed, an R if you are
End of preview. Want to read the entire page?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
Heather D. Wright
Tags
Left handedness, Handedness, Right handedness, elif leftOrRight

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture