I am attempting to transfer a global integer and string between functions. The integer seems to be transferring fine but the string is not. The string contains the global integer in it. Even after I change the global integer in my second function the string containing the integer doesn't seem to update. Any help would be greatly appreciated.
num=1
num_str = ''
class Class(object):
    def Function1(self):
        global num
        global num_str
        num_str = ("number " + str(num))
        print(num)
        print(num_str)
        self.Function2()
    def Function2(self):
        global num
        global num_str
        num += 1
        print(num)
        print(num_str)
Class().Function1()
My output is
1
number 1
2
number 1
Process finished with exit code 0
