How can I import multiple items from a module and rename them in Python? -
i want import atan
, degree
math
, rename them both.
i have tried using this:
from math import atan,degree t,z
but gives importerror: cannot import name 'z'
.
i did number of google searches "import multiple modules , rename", fruitless. python manual hasn't helped - page on imports doesn't explain (as far can tell).
how can import multiple items module, , rename them?
you have use as
each item:
from math import atan t, degree z
this imports , renames them all.
Comments
Post a Comment