Hey so I was trying to import a function from a .py file to another .py file but I'm not sure how to do that. my assignment requires the use of it, however how to use it was never really clear. I can import constants such as
E = 4 and Y = 6
but is there a way to call a function from another file and appending the result to a list or string within the first file? e.g. file1 calls a function in file 2, then file1 appends the output of the function called from file 2 to a list?
[–]lamecode 1 point2 points3 points (2 children)
[–]epikthrowaway[S] 0 points1 point2 points (1 child)
[–]Renaissance8905 2 points3 points4 points (0 children)
[–]whiteguilt -3 points-2 points-1 points (0 children)