class cga(object):
''''''
def __int__(self,i,o):
''''''
self.i = i
self.o = o
def get(self):
''''''
self.i = []
c = raw_input("How many courses you have enrolled in this semester?:")
cout = 0
while cout < c:
n = raw_input("plz enter your course code:")
w = raw_input("plz enter your course weight:")
g = raw_input("plz enter your course grade:")
cout += 1
self.i.append([n,w,g])
if __name__ == "__main__":
test = cga()
test.get()
my problem is the if i type 5 when program ask how many courses i enroll. The loop will not stop, program will keep asking input the course code weight grade. I debugged when it shows program has count cout = 6, but it doest compare with c and while loop does not stop.