Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- active = True
- print("Enter: help")
- input(">")
- print("> start to start the car\n> stop to stop the car\n> quit to finish")
- while active:
- command = input()
- if command == "start":
- print("Car started.")
- elif command == "stop":
- print("car stopped")
- elif command == "quit":
- break
- elif command != "start" or "stop" or "quit":
- print("i dont understand that")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement