I've recently started learning python, I'm using Python 3.4. I'm trying to understand If-Else
statement syntax
x=2
if x:
print(x)
But I'm always encountering this Error
IndentationError: expected an indented block
I searched internet about this error, people says that this happens becasue of mixing of tabs and spaces
. But in my code as you see, I haven't mixed any space or tab. I haven't used them in the first place except with if statement.
PyCharm
– Atinesh 2 days ago