Question: Prompt the user to enter an integer, and then print 'negative' if the entered number is negative, 'zero' if it is 0 and 'positive' if

Prompt the user to enter an integer, and then print 'negative' if the entered number is negative, 'zero' if it is 0 and 'positive' if it is positive. You should use the if-elif-else form.

int_string = input('Please enter an integer: ') if int(input('Please enter an integer: '))== negative: print('negative') if int(input('Please enter an integer: '))== zero: print('zero') if int(input('Please enter an integer: '))== positive: print('positive')

Above is what I write...But it is wrong

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!