So I have a program with a module and a seperate file which are as follows Module:
def area_of_Triangle(b, h, units = "square centimeters"):
aot = (b * h) / 2
return "{0} {1}".format(aot, units)
def MyTuple(*args):
result = 0
for arg in args:
result += arg
return result
divide = lambda x, y: x / y if y != 0 else "Not Allowed"
The separate file:
import MODULE1
print (area_of_Triangle(4.5, 5.6, units="square inches"))
print (MyTuple(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))
print (divide(2, 3))
every time I try to run it, it keeps saying name 'area_of_Triangle' not defined