Python - How to convert this while loop to for loop?
percentNumbers = [ ] finish = "n" num = "0" while finish == "n" : num = input("enter the mark : ") num = float(num) percentNumbers.append(num) finish = input("finished? (y/n) ") print(percentNumbers)
0 comments:
Post a Comment