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

 

In this we are going to see how to build a function to to Find Present or Absent in Class - Type 2 of Functions in Python Programming Language.

def present_absent(list):

    roll = int(input("Enter Roll Number : "))
    if roll in list:
        print("Present")
    else:
        print("Absent")


present_absent([5, 12, 15, 19, 23, 25, 36, 38, 40, 45, 49, 54, 55])
# Coded By Ashish

#ENJOY CODING


Post a Comment

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

Previous Post Next Post