x = 5 #Any variable outside a function is already a global variable def GLOBAL(): global y #if a variable is inside a function, use the 'global' keyword to make it a global variable y = 10 # now this variable (y) is global