Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Chrome File Edit View History Bookmarks People Window Help 92% C Tue 11:37 PM Q

ID: 3710863 • Letter: C

Question

Chrome File Edit View History Bookmarks People Window Help 92% C Tue 11:37 PM Q E HCT Portal xPractical-Exam-2-1 (anon-jzib xH00325599 Abdalla All Ahmec x ?-> C Secure | https://practicalexam21-anon-jzibqw.notebooks.azure.com/nb/notebooks/H00325599_Abdalla%20A?%20Ahmedipynb jupyter H00325599 Abdalla Ali Ahmed unsaved chae) File Edit Vioew Insert Cll Kernel Data WidgetsHelp Run Azure Notebooks My Libraries Test2-Version-K2165-9-734d() Not TrustedPython 3.6 O g????? » Markdown #Eldil Enter/Exit RISE Slideshow # First Question Write a python program to check whether a number is negative, positive or zero? Enter the number/b>

Explanation / Answer

The code for the question is:

num = float(input("Enter the number: "))

if num >= 0:

if num == 0:

print("The number is Zero")

else:

print("The number is Positive")

else:

print("The number is Negative")

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote