mercredi 18 août 2021

The console isn't printing what I asked for [closed]

This function is not printing correctly:

def start():
    a = 0
    def loop(a):
        if a < 100:
            a += 1
            print(a)
            loop()
        elif a == 100:
            print(a)
            print("finished")
start()

enter image description here

Aucun commentaire:

Enregistrer un commentaire