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 ")
Dream Always Dream , if you don't work on it : Real-world Oracle DBA troubleshooting guides for RAC, Data Guard, RMAN, performance tuning, upgrades, backups, and cloud migration. Tested in production environments.
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")
The print() function in Python is one of the most commonly used tools for displaying output. Whether you're debugging code, showing results, or interacting with users, print() is your go-to function.
print ("Hello world ")
Printing Multiple Items
You can print multiple items separated by commas:
name = "Anurag"
age = 30
print("Name:", name, "Age:", age)
catcon.pl (Catalog Container Script) is an Oracle utility introduced with the Multitenant Architecture (CDB/PDB) to execute SQL scripts ...