def setup():
name = ["Boss" ,"Oat" ,"Nook" ,"Nun" ,"Noy"]
number = [1,2,3,4,5]
age = [38 ,18 ,20 ,17 ,40]
weight = [80 ,50 ,55 ,52 ,60]
height = [160 ,163 ,160 ,160 ,156]
display(name,number,age,weight,height)
def display(name,id,age,w,h):
i = 0
count = 0
while(i<len(name)):
if(w[i]<50):
count = count + 1
print("Minimum Weight is")
print("Name: ",name[j])
print("Student ID: ",id[j])
print("Age : ",age[j])
print("Weight : ",w[j])
print("Height : ",h[j])
print("")
i = i+1
if(count == 0):
print("There is no student with weight < 50")
setup()
ไม่มีความคิดเห็น:
แสดงความคิดเห็น