+ 1
If i was reading a text file in a previous function and made a list, how can i pass that list to a different function in order to be read and open it?
2 Réponses
+ 5
Python isn't picky about variable types, so this shouldn't be too bad. From what you've said, I take it both functions are being called by a 3rd? In that case, you'll want to return your list, save it in a variable, and pass it on that way.
Hope this helps
+ 1
Ah yep, makes sense thanks!