Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data And Hadoop Fundamentals Tools And Techniques For Data Driven Success

Authors: Mayank Bhushan

2nd Edition

9355516665, 978-9355516664

More Books

Students also viewed these Databases questions

Question

1. Is IPR a failure at North Trust?

Answered: 1 week ago

Question

Explain the forces that influence how people handle conflict

Answered: 1 week ago