-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwhile loop.py
More file actions
43 lines (37 loc) · 843 Bytes
/
Copy pathwhile loop.py
File metadata and controls
43 lines (37 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# i=1
#
# while i<=10:
# print('*'*i)
# i = i + 1
# print("whooooo")
# gusseing game
# secret_number = 9
# guess_count = 0
# guess_limit = 3
#
# while guess_count < guess_limit:
# guess = int(input("Guess: "))
# guess_count += 1
# if guess == secret_number:
# print("Whooo you won! ")
# break
# else:
# print("Sorry, you lost! The number was", secret_number)
#car game
command =""
while True:
command = input(">")
if command.lower() == "start":
print("car started")
elif command.lower() == "stop":
print("car stopped")
elif command.lower() == "help":
print('''
Start = start the car
Stop = stop the car
quit = exit the program
''')
elif command =="quit":
break
else:
print("Tmkc lavde thik se daaal")