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")
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)
What is python ?
RMAN>
RMAN> backup database plus archivelog ;
Starting backup at 25-MAY-25
current log archived
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=278 device type=DISK
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=22 RECID=17 STAMP=1201966510
input archived log thread=1 sequence=23 RECID=18 STAMP=1201968926
input archived log thread=1 sequence=24 RECID=19 STAMP=1201970163
input archived log thread=1 sequence=25 RECID=20 STAMP=1202022953
input archived log thread=1 sequence=26 RECID=21 STAMP=1202026475
channel ORA_DISK_1: starting piece 1 at 25-MAY-25
channel ORA_DISK_1: finished piece 1 at 25-MAY-25
piece handle=/u01/app/oracle/fast_recovery_area/DB1/backupset/2025_05_25/o1_mf_annnn_TAG20250525T081436_n35ncf0p_.bkp tag=TAG20250525T081436 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:04
Finished backup at 25-MAY-25
Starting backup at 25-MAY-25
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/DB1/system01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/DB1/sysaux01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/DB1/undotbs01.dbf
input datafile file number=00007 name=/u01/app/oracle/oradata/DB1/users01.dbf
channel ORA_DISK_1: starting piece 1 at 25-MAY-25
channel ORA_DISK_1: finished piece 1 at 25-MAY-25
piece handle=/u01/app/oracle/fast_recovery_area/DB1/backupset/2025_05_25/o1_mf_nnndf_TAG20250525T081440_n35ncno8_.bkp tag=TAG20250525T081440 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:35
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00010 name=/u01/app/oracle/oradata/DB1/pdb/sysaux01.dbf
input datafile file number=00009 name=/u01/app/oracle/oradata/DB1/pdb/system01.dbf
input datafile file number=00011 name=/u01/app/oracle/oradata/DB1/pdb/undotbs01.dbf
input datafile file number=00012 name=/u01/app/oracle/oradata/DB1/pdb/users01.dbf
channel ORA_DISK_1: starting piece 1 at 25-MAY-25
channel ORA_DISK_1: finished piece 1 at 25-MAY-25
piece handle=/u01/app/oracle/fast_recovery_area/DB1/2FACECCE69615207E0630400040AB366/backupset/2025_05_25/o1_mf_nnndf_TAG20250525T081440_n35ndnx1_.bkp tag=TAG20250525T081440 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00017 name=/u01/app/oracle/oradata/demo1/sysaux01.dbf
input datafile file number=00016 name=/u01/app/oracle/oradata/demo1/system01.dbf
input datafile file number=00018 name=/u01/app/oracle/oradata/demo1/undotbs01.dbf
channel ORA_DISK_1: starting piece 1 at 25-MAY-25
channel ORA_DISK_1: finished piece 1 at 25-MAY-25
piece handle=/u01/app/oracle/fast_recovery_area/DB1/33E6395D57264163E0630400040A2C41/backupset/2025_05_25/o1_mf_nnndf_TAG20250525T081440_n35nf4bh_.bkp tag=TAG20250525T081440 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00006 name=/u01/app/oracle/oradata/DB1/pdbseed/sysaux01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/DB1/pdbseed/system01.dbf
input datafile file number=00008 name=/u01/app/oracle/oradata/DB1/pdbseed/undotbs01.dbf
channel ORA_DISK_1: starting piece 1 at 25-MAY-25
channel ORA_DISK_1: finished piece 1 at 25-MAY-25
piece handle=/u01/app/oracle/fast_recovery_area/DB1/2FAC79D13BBE3BB3E0630400040A98FA/backupset/2025_05_25/o1_mf_nnndf_TAG20250525T081440_n35nfmyv_.bkp tag=TAG20250525T081440 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
Finished backup at 25-MAY-25
Starting backup at 25-MAY-25
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=27 RECID=22 STAMP=1202026564
channel ORA_DISK_1: starting piece 1 at 25-MAY-25
channel ORA_DISK_1: finished piece 1 at 25-MAY-25
piece handle=/u01/app/oracle/fast_recovery_area/DB1/backupset/2025_05_25/o1_mf_annnn_TAG20250525T081604_n35ng5fm_.bkp tag=TAG20250525T081604 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 25-MAY-25
Starting Control File and SPFILE Autobackup at 25-MAY-25
piece handle=/u01/app/oracle/fast_recovery_area/DB1/autobackup/2025_05_25/o1_mf_s_1202026566_n35ng924_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 25-MAY-25
RMAN>