0
Please someone should help me, why do i get syntax error in line 17 (elif comand == help)
5 ответов
+ 1
Closing parenthesis is missing
+ 1
I'm really sorry of course parenthesis is missing in line 16 so I wasu confused because it shows me the mistake is in line 17. Many thanks
+ 1
Close the bracket in line 17.
0
It's not about closing parenthesis. Chect it properly
0
comand = ""
started = False
while True:
comand = input("> ").lower()
if comand == "start":
if started:
print("the car is already started ")
else:
started = True
print("the car is started")
elif comand == "stop":
if not started:
print("the car is already stopped")
else:
started = False
print("the car is already started ")
elif comand == "help":
print("""
start - to start the car
stop - to stop the car
quit- to quit the car """)
elif comand == "quit":
break
else:
print( "sorry i don 't understand that ")