How do I fix TypeError: 'int' object is not iterable?

后端 未结 3 1575
孤街浪徒
孤街浪徒 2020-11-30 13:01

I am trying to write a program that allows you to enter the number of students in a class, and then enter 3 test grades for each student to calculate averages. I am new to

3条回答
  •  鱼传尺愫
    2020-11-30 13:23

    try this...it will work...

    i=0
    x = "abcd"
    
    
    print("Using for loop printing string characters")
    for i in range(len(x)):
        print(x[i])
    

提交回复
热议问题