Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command = ""
- while True:
- command = input('> ').lower()
- if command == 'start':
- print('car is started....')
- elif command == 'stop':
- print('car stopped')
- elif command == 'help':
- print("""
- start - to start the car
- stop - to stop the car
- quit - quit the car""")
- elif command == "quit":
- break
- else:
- print("sorry i dont understand u")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement