x = 10

def change_number():
    global x
    x = 20

change_number()
print(x)  # Output will be 20


team_score = 0  # This is our global variable for the team score

def update_score(new_points):
    global team_score
    team_score += new_points  # Update the global variable with the new points

update_score(5)  # Add 5 points to the team score
print("Team score:", team_score)  # This will print "Team score: 5", because we updated the global variable inside the function