Question: Say you find a module in a package that does a lot of awesomely useful things, but the name of it is module_that_does_many_awesomely_useful_things.py. You want
Say you find a module in a package that does a lot of awesomely useful things, but the name of it is module_that_does_many_awesomely_useful_things.py. You want to import and use the module, but you don't want to have to type that whole name out every time you call one of its functions! What should you do?
1. adjust your lazy attitude and just type the whole name out every time
2. use "import module_that_does_many_awesomely_useful_things" and just copy and paste the name every time you call one of its functions so that you at least don't have to type it out.
3.copy and paste the contents of the module into your own file and call it something short like "a.py"
4.use "import module_that_does_many_awesomely_useful_things as tools"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
