Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started