Skip to content
Quiz · Functions · lesson 4 of 8

Quiz — assigning a global

What happens when this program runs?

Python
count = 0


def increment():
    count = count + 1
    return count


print("start")
print(increment())

Subscribe to take the course

The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.

Sign in another way