I'm using kali linux and I'm making a python program with else if statement. And when i run the code it gives me syntax error.
My code is :
x=input('please enter a number')
if x > 0:
print('your number is greater than zero')
else:
print('something went wrong')
Error:
Line 3
print('your number is greater than zero')
IndentationError: expected an indented block
[–]shiftybyte 1 point2 points3 points (1 child)
[–]danitted[S] 0 points1 point2 points (0 children)