Write a program that takes an integer input and checks whether it is even or odd.
num=int(input("Please Enter the Number : "))
num_check = num % 2
if (num_check == 0):
print(f"{num} even number")
else:
print("odd number ")
Write a program that takes an integer input and checks whether it is even or odd.
num=int(input("Please Enter the Number : "))
num_check = num % 2
if (num_check == 0):
print(f"{num} even number")
else:
print("odd number ")
Ask the user to enter a number and print whether it is positive, negative, or zero.
# Positive, Negative, or Zero Checker
#take the input from user
number=float(input("Please enter the number : "))
# check the condition
if (number>0):
print(f" {number} is postive")
elif(number<0):
print(f"{number} is negative")
else:
print(f"{number} is zero")
print ("Hello world ")
To download the python for various platform like Windows, Linux , MacOS