# 1. Call a different function from the stastics module import statistics as stat nums = [10, 3, 4, 8, 8, 99, 112, 35, 60, 30, 77, 25] print(stat.mode(nums)) # module named subed, w/ function that takes number as param, returns number cubed. import call func from another module #cubed module #def f(num): #num = num**3 #return num import cubed cubed.f(2) print(cubed.f(5))
#1 import statistics print(statistics.median_low([1,3,5,7])) print(statistics.median_high([1,3,5,7])) #2 import cubed print(cubed.f(3))
import cubed result = cubed.f(3) print(result)
import cubed b = cubed.f(2) print(b)
import cubed cubed.f(2)
import cubed cubed.f()