+ 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?

19th May 2017, 1:02 AM
Beck
Beck - avatar
2 Antworten
+ 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
19th May 2017, 3:07 AM
Jim
Jim - avatar
+ 1
Ah yep, makes sense thanks!
19th May 2017, 8:28 AM
Beck
Beck - avatar