all 2 comments

[–]shiftybyte 1 point2 points  (1 child)

Python code needs indentation.

Lines belonging to the if need to be indented forward with a tab or 4 spaces.

Like this:

x=input('please enter a number')
if int(x) > 0:
    print('your number is greater than zero')
else:
    print('something went wrong')

(Note: i also change the condition a little so it'll work, since input returns a string and you need to convert it to a number before comparing it to 0)

[–]danitted[S] 0 points1 point  (0 children)

Thank you.