Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/wapython
Path: blob/main/python/python-wasm/src/extension/hello.py
1067 views
1
import sys, time
2
3
sys.path.insert(0, 'dist')
4
import hellozig, hello
5
6
print(hellozig.add389(100))
7
hellozig.hello('william')
8
print(hellozig.gcd(18, 21))
9
t = time.time()
10
print(sum(hellozig.gcd(12345678, n) for n in range(1,1000000)))
11
print(time.time() - t)
12
13
print("\n---\n")
14
print(hello.add389(100))
15
hello.hello('william')
16
print(hello.gcd(18, 21))
17
t = time.time()
18
print(sum(hello.gcd(12345678, n) for n in range(1,1000000)))
19
print(time.time() - t)
20
21