krishna krishna - 9 months ago 38
Python Question

Indented block is expected in python 3.5.2

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


and the output is as follows:

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


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.')
    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.