So I'm learning about classes and objects in Python 3, but there's an error in my code ('int' object is not iterable)

class student:
name = 0
gpa = 0
def countGpa(self):
a = max(self.gpa)
print(a)
def main():
objek = student()
n = int(input("n: "))
for i in n:
objek.name = int(input("name: "))
objek.gpa = int(input("gpa: "))
objek.countGpa()
main()
I have no idea how to create an array + OOP
student, but you seem to be asking for many names. This implies that you want lots of instances. That would make more sense when it comes time to work out themax()gpa.objek.name[i]= str(input("name: "))but it doesn't work here..