1
None
10
num = 1— This line assigns the value 1 to the global variablenum.def myfunc():— This line defines a function namedmyfunc.global num— Inside themyfuncfunction, this line declares that the variablenumis a global variable, meaning it refers to thenumvariable defined outside the function.num = 10— Inside themyfuncfunction, this line changes the value of the global variablenumto 10.print(num)— This line prints the value of the global variablenum, which is still 1 at this point asmyfunchasn't been called yet.print(myfunc())— This line calls themyfuncfunction. However, since the function doesn't have a return statement, it implicitly returns None, which is then printed.print(num)— Finally, this line prints the value of the global variablenumafter themyfuncfunction has been called, which is now 10 due to the assignment inside the function.