Can I make several variables global at once?

Viewed 36

I'm trying to make the following section of code a function in a separate file to clean it up:

for i in range(randomVotes):
        if randint(0, cap) == 0:
            rightWingVoters += 1
            randomRightWing += 1
        else:   
            leftWingVoters +=1
            randomLeftWing += 1

Can I define all four variables to be global at once?

0 Answers
Related