Example #1
0
# 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))
Example #2
0
#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))
Example #3
0
import cubed

result  = cubed.f(3)
print(result)
Example #4
0
import cubed
b = cubed.f(2)
print(b)
Example #5
0
import cubed

cubed.f(2)
Example #6
0
import cubed
cubed.f()