Computer Science, asked by shrishs, 2 months ago

1. Write a Python Program to accept a number and check if it is positive, negative or neutral.
2. Write a Python Program that accepts a number from 1 to 7 and displays the corresponding day of the week. If any other number is entered, program should display 'Invalid Number'.
Whoever answers both the questions first and correct, I will mark them as brainliest.

Answers

Answered by ayush2847
2

1. # A python program for (Your Topic)

num = int(input("Enter your Number : ")

if (num > 0) :

print("The Number is Positive")

if (num < 0) :

print("The Number is Negative")

if (num == 0) :

print("The Number is neutral")

else :

print("Please Enter a Valid Response")

2. # A python program for (Your Topic)

day = int(input("Enter Your Week Number :")

if (day == 1 ) :

print("The Day is : Sunday")

if (day == 2 ) :

print("The Day is : Monday")

if (day == 3 ) :

print("The Day is : Tuesday")

if (day == 4 ) :

print("The Day is : Wednesday")

if (day == 5 ) :

print("The Day is : Thursday")

if (day == 6 ) :

print("The Day is : Friday")

if (day == 7 ) :

print("The Day is : Saturday")

else:

print("Please Enter a Valid Response")

If there Are Any mistakes forgive me..


shrishs: Thank you so much! This helped me a lot!
ayush2847: You are welcome Bro..
shrishs: You can anytime ask me for help, I would surely help you!
Answered by tanviharish
1

Answer:

The answer

Explanation:

a=int(input("Enter a number"))

if a > 0:

 print(a,"is positive")

elif a == 0:

 print (a,"is neutral")

else:

 print(a,"is negative")

Similar questions