My Python Quiz

The ultimate place to learn Python!

Question #14: What gets printed?

counter = 1 

def doLotsOfStuff():
    
    global counter

    for i in (1, 2, 3): 
        counter += 1

doLotsOfStuff()

print(counter)