Python_2_Examples_and_Notes/09_modules.py

9 lines
261 B
Python
Executable File

#!/usr/bin/python
# -*- coding: utf-8 -*-
# modules are just files, import testmod --> testmod.py
# note that it cannot start with a number...
# that's it
# example with previous class: import filewithclass // var1 = filewithclass.Calculator(10,20) // print