Say i have a python file called a.py with the functions x,y,z.
I want to import them to a new file called b.py 
I tried: from a import *   AND   from a import all with no luck.
I can just do it separately: from a import x , from a import y ....
How can i import them ALL at once?
You can import a file and then use the functions on that file using the import name before the function name.
import example #this import the entire file named example.py
example.myfunction() #this call a function from example file
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With