samlerepo/2019/PythonIntro/notes/07_importing.py

21 lines
331 B
Python
Raw Normal View History

2019-09-27 00:06:03 +02:00
"""
It is easier to reuse code and structure projects in multiple files.
"""
# We can import our own code
funcs = __import__("03_functions")
print("\n\n")
funcs.fancy_func(3)
print("\n\n")
import pandas
import numpy as np
print(np.pi)
from numpy import e
print(e)
# Libraries makes life easier, use pip for everything always