I want to use a function's variable which is [a] in here to another function, is it possible with global variables or class? if yes how
def apple():
a = 2
def orange():
if a == 2:
print('your fruit is apple')
i'm not lazy,i spent time to find the answer but i couldn't,so understand my low skill programming.