+ 5

Please check out my code (name= what is the error) and please tell me.šŸ˜„

please check out my code named ( what is the error) and please reply me what is the error.

10th Feb 2018, 3:13 AM
Jashan Singh
Jashan Singh - avatar
7 Answers
+ 19
x= int(input("enter a number:")) if x==50: print("logan") else: print("paul") You need Indentation with if and else statements, Also covert input to int as the default input() takes the input given by user as a string As mentioned by @Jayden.. from henceforward please provide a link to ur code
10th Feb 2018, 3:17 AM
Frost
Frost - avatar
+ 7
tabs, spacing/white-space is important in python
10th Feb 2018, 3:17 AM
jay
jay - avatar
+ 5
thank u sooo much guys for helping me . That was a big lesson.
10th Feb 2018, 3:25 AM
Jashan Singh
Jashan Singh - avatar
+ 4
and please help
10th Feb 2018, 3:15 AM
Jashan Singh
Jashan Singh - avatar
+ 4
so u mean I should put blank space??
10th Feb 2018, 3:19 AM
Jashan Singh
Jashan Singh - avatar
+ 3
please open my profile
10th Feb 2018, 3:14 AM
Jashan Singh
Jashan Singh - avatar
+ 3
You need to indent everything that is contained inside the if statements. x= input("enter a number:") if x==50: print("logan") else: print("paul")
10th Feb 2018, 3:16 AM
Brendan Degryse
Brendan Degryse - avatar