0

Please someone should help me, why do i get syntax error in line 17 (elif comand == help)

https://code.sololearn.com/cZoE5dYvoZfn/?ref=app

4th Oct 2023, 8:24 AM
SAGIR ISAH
SAGIR ISAH - avatar
5 odpowiedzi
+ 1
Closing parenthesis is missing
4th Oct 2023, 8:28 AM
Alaa Aldeen Shammr
Alaa Aldeen Shammr - avatar
+ 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
4th Oct 2023, 8:39 PM
SAGIR ISAH
SAGIR ISAH - avatar
+ 1
Close the bracket in line 17.
6th Oct 2023, 6:24 AM
Rahul Bankar
Rahul Bankar - avatar
0
It's not about closing parenthesis. Chect it properly
4th Oct 2023, 8:38 AM
SAGIR ISAH
SAGIR ISAH - avatar
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 ")
4th Oct 2023, 8:38 AM
Alaa Aldeen Shammr
Alaa Aldeen Shammr - avatar