I have two function
def func1():
res = requests.get('https://goole.com')
def func2():
print(res.text)
I want to access res in func2() but as it is local object of func1() it is not accessible in func2(). I tried making it global like " global res " but i am getting error
NameError: name 'res' is not defined
ThankYou