Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command = 'casa'
- while command!='quit':
- command = input('>')
- if(command=='help'):
- print("start - to start the car")
- print("\nstop - to stop the car")
- print("\nquit - to exit")
- elif(command=='start'):
- print('Car started..Ready to go!')
- elif(command=='stop'):
- print('Car stopped')
- else:
- if command != 'quit':
- print("I don't understand that...")
Add Comment
Please, Sign In to add comment