FelipeNeto2

Building the car game

Jul 10th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. command = 'casa'
  2.  
  3. while command!='quit':
  4.   command = input('>')
  5.    
  6.   if(command=='help'):
  7.     print("start - to start the car")
  8.     print("\nstop - to stop the car")
  9.     print("\nquit - to exit")
  10.  
  11.   elif(command=='start'):
  12.     print('Car started..Ready to go!')  
  13.  
  14.   elif(command=='stop'):
  15.     print('Car stopped')
  16.  
  17.   else:
  18.     if command != 'quit':
  19.       print("I don't understand that...")
Add Comment
Please, Sign In to add comment