Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- account1 = 0
- account2 = 0
- while True:
- try:
- account1 = int(input("Please input a number from 0 to 180: "))
- for i in range(0, 180, 10):
- motor1.set(-5)
- sleep(4)
- motor1.set(0)
- sleep(4)
- print("You just typed: ", motor1)
- except KeyboardInterrupt:
- print("The expressions are over!")
- try:
- account2 = int(input("Please choose another number in between 0 and 180: "))
- for a in range(0, 180, 25):
- motor1.set(a)
- sleep(4)
- motor1.set(-5)
- sleep(4)
- motor1.set(0)
- sleep(4)
- except KeyboardInterrupt:
- print("You are done w/ the program. Yea!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement