i have two variable Total days and total present - so i need to create a new variable called percentage(total present/total days) and store the values in it.....like wise i needed to do for all the 50 values...i tried something like this
percentage = 0
while percentage < 51:
print(attend['Total present']/attend['Total days'])
percentage = percentage + 1
Can someone help me to understand on how to write a function
This is the data
Total days Total present
90 79
90 69
90 78
90 66
90 83
90 72
90 79
90 65
90 75
90 84
90 80
90 69
90 80
90 83
90 65
90 74
90 75
90 82
90 82