Start på Pass 3
This commit is contained in:
17
Pass 3/import.py
Executable file
17
Pass 3/import.py
Executable file
@@ -0,0 +1,17 @@
|
||||
import os, math, random, statistics
|
||||
|
||||
#lite os saker
|
||||
print(os.getcwd())
|
||||
print(os.listdir('.'))
|
||||
|
||||
#lite matte och random
|
||||
print(math.pi)
|
||||
print(math.e)
|
||||
print(random.randrange(1,1000))
|
||||
|
||||
#lite statistik
|
||||
liteData = [12,324,345,234,1231,56,7,56,78,5567,5,45]
|
||||
print(statistics.mean(liteData))
|
||||
print(statistics.median(liteData))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user