Flyttet python-kurset ut av samlerepoet

This commit is contained in:
2025-03-04 15:18:01 +01:00
parent c9cc068203
commit f9eb912b6a
38 changed files with 3 additions and 1164 deletions

21
notes/07_importing.py Normal file
View File

@@ -0,0 +1,21 @@
"""
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