Nov-29-2020, 08:45 PM
>>> x = int(input("Please enter an integer: "))
Please enter an integer: 42
>>> if x < 0:
x = 0
print('Negative changed to zero')
>>> elif x == 0:
SyntaxError: invalid syntax
>>>
I was trying to run through the Python tutorial. This is 4.1
Please enter an integer: 42
>>> if x < 0:
x = 0
print('Negative changed to zero')
>>> elif x == 0:
SyntaxError: invalid syntax
>>>
I was trying to run through the Python tutorial. This is 4.1