Function to Find Present or Absent in Class || Type 3 || Functions || Python

 

In this we are going to see how to build a function to to Find Present or Absent in Class - Type 3 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 : "))

    return roll, list


r, l = present_absent()
if r in l:
    print("Present")
else:
    print("Absent")
# Coded by Saahil Shaikh

#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post