def setup():
a = student("Giggs",20,180,60)
b = student("Keane",18,165,90)
c = student("Cole",21,185,74)
d = student("Scholes",19,177,55)
e = student("Park",18,175,46)
a.show()
b.show()
c.show()
d.show()
e.show()
class student:
def __init__(self,name,age,weight,high):
self.name = name
self.age = age
self.weight = weight
self.high = high
def show(self):
print(self.name, end = " ")
print(self.age, end = " ")
print(self.weight, end = " ")
print(self.high, end = " ")
print()
setup()
ไม่มีความคิดเห็น:
แสดงความคิดเห็น