krishna krishna - 4 months ago 8
Python Question

Indented block is expected in python 3.5.2

This is the code i wrote for practicing Python Programming as an image:

Code

and the output is as follows:
Output

please help me guys.
PS : I am new to python programming and the installed version is 3.5.2

Answer

I think you mean to have code that looks something like this:

x = 2
x = x + 12
if x < 10:
    print (x , ' is smaller than 10.')
else:
    print (x , 'is greater than or larger than 10.')

Because here as you can see there are indents, if you don't already know that about python, you should give the basics a read again. Try here.