+ 1
Guys...i cant get whats the mistake here...they are saying expecting an indent at line 3
https://code.sololearn.com/cqbyh5cMrp62/?ref=app https://code.sololearn.com/cqbyh5cMrp62/?ref=app
6 Answers
+ 10
You need indent with spaces or tab the lines with print. Check this:
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2277/
+ 3
You need to format it like this:
if input() and x :
print ("you have access welcome DevaSurya")
else:
print("acces denied")
Indention is matters in python. So if you want some strings of code executed as part of if clause it should be indented.
Also first line of your code doesn't make sense if x shoud store a string it should be in quotes/double quotes like x='blablabla'
+ 2
1. Put space in front of if and else
2. Put tintu between ""
+ 2
Please find below. I have modified the code.
x='tintu'
if input()==x :
print ("you have access welcome DevaSurya")
else :
print("acces denied")
+ 1
Thanks everyone...i got my mistake....u guys are gr8
0
Yeah Jason Mackjoo i had put and instead == .. thnkss brother