+ 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

8th May 2019, 4:46 AM
Y AD Ù
Y AD Ù - avatar
6 ответов
+ 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/
8th May 2019, 5:03 AM
Javier Felipe Toribio
Javier Felipe Toribio - avatar
+ 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'
8th May 2019, 5:04 AM
Dima Makieiev
Dima Makieiev - avatar
+ 2
1. Put space in front of if and else 2. Put tintu between ""
8th May 2019, 5:00 AM
Jason Mackjoo
Jason Mackjoo - avatar
+ 2
Please find below. I have modified the code. x='tintu' if input()==x : print ("you have access welcome DevaSurya") else : print("acces denied")
8th May 2019, 5:14 AM
Jason Mackjoo
Jason Mackjoo - avatar
+ 1
Thanks everyone...i got my mistake....u guys are gr8
8th May 2019, 5:12 AM
Y AD Ù
Y AD Ù - avatar
0
Yeah Jason Mackjoo i had put and instead == .. thnkss brother
8th May 2019, 5:18 AM
Y AD Ù
Y AD Ù - avatar