a = int (input ("Enter any Number =" ))
if a % 2 == 1:
print ("Odd Number" )
else :
##Modal1
if a % 10 == 0:
print ("Even Number. Divisible by 10" )
else :
print ("Even Number. Not divisible by 10" )
##Modal 2
print("Even Number divisible by 10") if (a % 10) == 0 else print("Even Number not divisible by 10")
a = int (input ("Enter a Number" ))
if a % 2 == 0:
if a % 10 == 0:
if a == 100:
print ("Even number ,divisible by 10 and equal to 100." )
else :
print ("Even number,divisible by 10,but not equal to 100." )
else :
print ("Even number not divisible by 10." )
else :
print ("Odd Number" )
a = int (input ("Enter Number of Classes held : " ))
b = int (input ("Enter Number of Classes attended : " ))
c = input ("Medical Issues : " )
d = (b/a)*100 ## for calculating percentage.
if c == "Yes" or c == "yes" or c == "s" :
if d >= 65:
print ("You are allowed." )
else :
print ("You are not allowed." )
elif d >= 75:
print ("You are allowed." )
else :
print ("You are not allowed." )
a = int (input ("Enter a Number :" ))
b = int (input ("Enter a Number :" ))
c = int (input ("Enter a Number :" ))
if a <= b and a <= c:
print ("The smallest number is :" ,a)
elif b <= a and b <= c:
print ("The smallest number is :" ,b)
else :
print ("The smallest number is :" ,c)
a = input ("Enter Your branch : \'puc\' or \'engg\'" )
if a == "puc" :
b = input ("Please enter first 3 characters of your ID :" )
if b == "s21" or b == "S21" :
print ("Your belongs to P1" )
elif b == "s20" or b == "S20" :
print ("Your belongs to P2" )
else :
print ("Please enter valid input" )
elif a == "engg" :
b = input ("Please enter first 3 characters of your ID :" )
if b == "s19" or b == "S19" :
print ("Your belongs to E1" )
elif b == "s18" or b == "S18" :
print ("Your belongs to E2" )
elif b == "s17" or b == "S17" :
print ("Your belongs to E3" )
elif b == "s16" or b == "S16" :
print ("Your belongs to E4" )
else :
print ("Please enter valid input" )
else :
print ("Please enter valid branch" )
a = input ("Enter a character :" ,)
b = len (a)
if b == 1:
if chr (97) <= a <= chr (122):
print ("Small Alphabet" )
elif chr (65) <= a <= chr (90):
print ("Capital Alphabet" )
elif chr (49) <= a <= chr (57):
print ("Number" )
elif a == " ":
print ("Invalid Input" )
else :
print ("Special Character" )
else :
print ("Please enter only one character" )
a = int (input ("Enter any Number :" ))
if a < 10:
if a < 0:
print ("Below 10 and Negative Number" )
else :
print ("Below 10 and Positive Number" )
elif a > 10:
if a == 15:
print ("Above 10 and Equal to 15" )
else :
print ("Above 10 and Not Equal to 15" )
else :
print ("Equal to 10" )
a = int (input ("Enter a Number" ))
b = int (input ("Enter a Number" ))
c = int (input ("Enter a Number" ))
if a < b and a < c:
if b < c:
print (b,"is the second largest number" )
else :
print (c,"is the second largest number" )
elif b < a and b < c:
if a < c:
print (a,"is the second largest number" )
else :
print (c,"is the second largest number" )
else :
if a < b:
print (a,"is the second largest number" )
else :
print (b,"is the second largest number" )
a = int (input ("Enter your subject1 a6s :" ))
b = int (input ("Enter your subject2 a6s :" ))
c = int (input ("Enter your subject3 a6s :" ))
if a >= 15 and b >= 15 and c >= 15:
if a+b+c >= 65:
print ("You got First class." )
elif a+b+c > 55:
print ("You got Second class." )
else :
print ("Your Passed." )
else :
print ("Your Failed." )
a = int (input ("Enter your age in years :" ))
b = int (input ("Enter your weight in KG :" ))
if a >= 18 and a <= 50 and b >= 50 and b <= 70:
print ("Your Okay for the fitness test." )
else :
print ("Not Okay for the fitness test." )
a = int (input ("Enter your Age :" ))
b = input ("Enter your Gender(male or female):" )
if a > 50:
print ("You got 20% concession." )
elif a >= 40 and a <= 50:
if b == "female" :
print ("You got 10% concession." )
elif b == "male" :
print ("You got 5% concesssion." )
else :
print ("Invalid input." )
elif a < 40:
if b == "female" :
print ("You got 3% concession." )
else :
print ("You got 5% concession." )
else :
print ("Invalid input." )
a = int (input ("Enter current bill units :" ))
b = input ("Enter type of area(urban or rural) :" )
if a > 0 and a <= 50:
if b == "urban" :
print ("Your current bill is " ,float (a*2.5))
else :
print ("Your current bill is" ,float (a*2))
elif a > 50 and a < 100:
if b == "urban" :
print ("Your current bill is " ,float (a*3.25))
else :
print ("Your current bill is" ,float (a*3))
elif a >= 100:
if b == "urban" :
print ("Your current bill is " ,float (a*4.5))
else :
print ("Your current bill is" ,float (a*4))
else :
print ("Invalid input." )
a = input ("Enter your name :" )
b = int (input ("Enter your work experience in years :" ))
c = input ("Enter your gender(male or female) :" )
d = int (input ("Enter your basic salary :" ))
if c == "female" :
if 0 <= b <= 20:
e,f = (15/100)*d,(10/100)*d
elif 21 <= b <= 30:
e,f = (30/100)*d,(15/100)*d
elif b > 30:
e,f = (40/100)*d,(25/100)*d
else :
print ("Invalid input" )
elif c == "male" :
if 0 <= b <= 20:
e,f = (15/100)*d,(10/100)*d
elif 21 <= b <= 30:
e,f = (25/100)*d,(10/100)*d
elif b > 30:
e,f = (35/100)*d,(2/100)*d
else :
print ("Invalid input" )
else :
print ("Invalid Input." )
print ("Basic salary : " +str (d)+", DA : " +str (e)+", HDA : " +str (f)+", Total salary : " +str (d+e+f))
Mentor in IT,Dept of IT,RGUKT-SRIKAKULAM
duppada8@rguktsklm.ac.in
Projects
Minutes Of Support
Hard Worker