Students attendance percentage calculator 20/8/21

students = {“fahad” : 15 ,”arshu” : 10, “anzar” : 20 , “moiz” : 30}
name = input(“what is your name”)
name1 = (students[name])
percent = (name1/30*100)
if name1 < 15 :
print(“very bad attendence this will cause issues”,”your attendance percentage is”,(percent))
else :
print(“you have good attendence no issues”,”your attendance percentage is”,(percent))

#here i have made a student attendance percentage calculator as well as review from data given in dictionary form

#here it asks you your name and calculates the percentage of you attendance in a month of 30 with the

#help of percent formula and IF AND ELSE statements

Leave a Comment