0

elif python problem

Hello I have a problem with my code I am hoping you could help me sc = input() if sc==2: print("2") elif sc==3: print("3") elif sc==4: print("4") elif sc==5: print("5") else print("Noooooo")

27th Jun 2018, 3:09 PM
Martin Chtilianov
Martin Chtilianov - avatar
2 odpowiedzi
+ 2
sc = int(input()) if sc==2: print("2") elif sc==3: print("3") elif sc==4: print("4") elif sc==5: print("5") else: print("Noooooo")
27th Jun 2018, 3:14 PM
Nikhil Dhama
Nikhil Dhama - avatar
0
thanks
28th Jun 2018, 11:59 AM
Martin Chtilianov
Martin Chtilianov - avatar