0
What's wrong with <If hello == 'hello': print('hello Binh')>
I write these lines and it returns error in If line. Anyone knows what's wrong with it? hello = 'hello' print(hello) print('a' > 'b') If hello == 'hello': print('hello Binh') else print('I don\t want to say hello to you')
4 Answers
+ 1
@wet water Thanks a million. It works now. Didn't expect that syntax must be strictly followed like that.
0
Yes, if you started with a language that doesn't require indentation Python will be a struggle at first. It took me a bit to get used to the fact that my code won't run unless I indent everything just right.