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)
...................................................................................................................
(( the question is : how can i convert this by using "for loop" instead of "while loop")) + (( I want the same result for both )). please help me ..