Question:

Which of the following is the output of the below Python code?

counter = 1 

def doLotsOfStuff():
    
    global counter

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

doLotsOfStuff()

print (counter)

Answers:


Keywords:

© 2017 QuizBucket.org