Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q1. (1 point) Write a code that accepts an arbitrary number and determines whether the number if positive (larger than zero), negative (smaller than zero)

image text in transcribed
Q1. (1 point) Write a code that accepts an arbitrary number and determines whether the number if positive (larger than zero), negative (smaller than zero) or zero. DA D. B ... D 4 ro # write your code here: vall= int(input( ' number: ') ) if vall>0: print( 'positive' ) ? vall=0: print( 'zero' ) val1

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

Step: 3

blur-text-image

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

Effective Project Management Traditional Agile Extreme Hybrid

Authors: Robert K. Wysocki

8th Edition

1119562805, 978-1119562801

More Books

Students also viewed these General Management questions

Question

Draw a labelled diagram of the Dicot stem.

Answered: 1 week ago

Question

=+10. What is the brand's character or personality?

Answered: 1 week ago