Global scope of variables in Python

If we move the variable num from the function to the outer code block, it will acquire global visibility and will become accessible not only inside the function, but also outside:

pythonnum = 1

def func():
  print(num)
  
func() # 1
Задание 1

What will be the result of running the following code:

pythonnum = 2

def func():
  return num

func()
print(num)
Задание 2

What will be the result of running the following code:

pythonnum = 2

def func():
  return num1

print(func())