Attempting to access the library via import labmath produces the following:
Code: Select all
0|lucas@blazar:~$ python3
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import labmath
>>> labmath.gcd(10, 12)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'labmath' has no attribute 'gcd'
Attempting to access the library via from labmath import * produces the following:
Code: Select all
0|lucas@blazar:~$ python3
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from labmath import *
>>> gcd(10, 12)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'gcd' is not defined
Attempting to import specific functions produces the following:
Code: Select all
0|lucas@blazar:~$ python3
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from labmath import gcd
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'gcd'
Can anyone help me figure out how to make this work?