+ 1
Error
A= 1 if A == 1: print("Hey") Showing error in if
6 Answers
+ 5
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2285/
Alex,
it doesn't have to be 4 spaces, it can be any number of spaces more than 0,
but there is one requirement,
the scripts at same level must have aligned indentation
https://code.sololearn.com/c8Tyi716A9Q7/?ref=app
+ 9
Check indentations
https://code.sololearn.com/cPt6457uJOIT/?ref=app
+ 5
Try this:
A=1
If A==1:
print("Hey!")
+ 5
Leave 4 spaces after using "if" (the same thing works for "else , while , and for)
+ 5
Gordon I didn't knew that , thx for the info!
+ 2
Thank you so much