Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- state = ()
- started=False
- while True:
- state = input(">").lower()
- if state == "start" :
- if started == False:
- print("Car is already started")
- else:
- started = True
- print("Car started")
- elif state == "stop":
- if not started:
- print("Samir u mad car is already stopped!!!")
- else:
- started = False
- print("Car stoppped")
- elif state == "help":
- print("""
- Start- to start a car
- Stop- to stop a car
- Quit- to exit
- """)
- elif state == "quit":
- break
- else:
- print("I dont understand")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement