CAR Start ... Stop Game in Python
CAR Start ... Stop Game
Hello Progammers...
Welcome tom this blog...
This is simple program to start and stop car game, it will quite interesting.
It's not very difficult
So Let's try this on your console
Welcome tom this blog...
This is simple program to start and stop car game, it will quite interesting.
It's not very difficult
So Let's try this on your console
Copy that Py Code and Paste Below mention website and run it...
website: https://repl.it/languages/python3
website: https://repl.it/languages/python3
Code
-------------
print('Hi Racer...\nCome on and start your car...\nKindly follow your instruction to opeartor')
print('start - start car\nstop - stop car\nquit - engineoff')
off = True
while off:
a = input().lower()
if a == 'start':
print('CAR Started.... :) ..>>>>')
while True:
b = input().lower()
if b == 'start':
print('CAR already started...')
elif b == 'stop':
print('CAR stopped... :( ')
break
elif b == 'quit':
print("Engine off, But Suddenly off engine it will damage in future.\nDon't try this in future")
off = False
break
else:
print("kindly see instruct to commenad\nYour command is not on our database")
elif a == 'stop':
print('CAR yet not Started.. :(')
elif a == ('quit' or 'q'):
print('Engine Off...\nBye :(')
break
else:
print("kindly see instruct to commenad\nYour command is not on our database")
print('start - start car\nstop - stop car\nquit - engineoff')
off = True
while off:
a = input().lower()
if a == 'start':
print('CAR Started.... :) ..>>>>')
while True:
b = input().lower()
if b == 'start':
print('CAR already started...')
elif b == 'stop':
print('CAR stopped... :( ')
break
elif b == 'quit':
print("Engine off, But Suddenly off engine it will damage in future.\nDon't try this in future")
off = False
break
else:
print("kindly see instruct to commenad\nYour command is not on our database")
elif a == 'stop':
print('CAR yet not Started.. :(')
elif a == ('quit' or 'q'):
print('Engine Off...\nBye :(')
break
else:
print("kindly see instruct to commenad\nYour command is not on our database")
-----------
By
Pykar
Pykar
Comments
Post a Comment