I will give an example on simple functions:
def first(): a = '1' b = '2' c = '3' print(a,b,c) def second(): lst = [] lst.append(a) lst.append(b) lst.append(c) return lst I understand that this code gives an error, so the question is: in what way can I do what I wrote above, or can I not take elements in functions from other functions in python?
If you still can not do this, I would be very happy if you offered some alternative solution.
thank
first()then callingsecond()- andreymalsecondthere will be no variablesa,b,c, which will throw out an error. - user207618