myNames gets the list but when trying to get the average, an error saying object is not iterable in the for loop when trying to get the average

前端 未结 0 534
耶瑟儿~
耶瑟儿~ 2020-12-07 12:57
def myNames():

    b = []
    while True:
    a = input("whats the name: ")
    if a != "done":
     b.append(a)
    elif a == "done":         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题