Reading while loops
def countup(n): total = 0 while n < 5: total = total + n n += 1 return total
Experiment with this code on Gitpod.io
⬅ Back