krishna krishna - 1 year ago 107
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

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download