+ 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.
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
+ 7
tabs,
spacing/white-space is important in python
+ 5
thank u sooo much guys for helping me . That was a big lesson.
+ 4
and please help
+ 4
so u mean I should put blank space??
+ 3
please open my profile
+ 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")