Â
In this we are going to see how to build a function to to Find Present or Absent in Class - Type 1 of Functions in Python Programming Language.
def present_absent():
list = [5, 12, 15, 19, 23, 25, 36, 38, 40, 45, 49, 54, 55]
roll = int(input("Enter Roll Number : "))
if roll in list:
print("Present")
else:
print("Absent")
present_absent()
# Coded By DHIRAJ SHELKE
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP