elif Statement Problem in macOSX. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

elif Statement Problem in macOSX.

whenever i type any elif statement and hit enter , it shows Sytax Error : Invalid Syntax . eg. i=1 if i==6: print("a") elif i==1: print("Break") this also gives syntax Error. please help/

6th Oct 2017, 5:30 AM
Aditya Navphule
Aditya Navphule - avatar
5 Réponses
+ 2
Is it same as you have written here?
6th Oct 2017, 8:04 AM
Kadam Dharmeshbhai Darji
Kadam Dharmeshbhai Darji - avatar
0
It is still giving the same error man ! run it in macOS . in python 3.6.3 shell .
6th Oct 2017, 7:11 AM
Aditya Navphule
Aditya Navphule - avatar
0
I could give a screenshot, but there is not a option here.
6th Oct 2017, 7:13 AM
Aditya Navphule
Aditya Navphule - avatar
0
Go away.
11th Oct 2017, 12:48 PM
Joshua Lesser
Joshua Lesser - avatar
0
Ok .
8th Feb 2018, 1:16 AM
Aditya Navphule
Aditya Navphule - avatar