aboutsummaryrefslogtreecommitdiffstats
path: root/analysis.py
diff options
context:
space:
mode:
authorYigit Sever2020-11-09 03:11:55 +0300
committerYigit Sever2020-11-09 03:11:55 +0300
commiteea912b9c327d397197212e326b7f2728d59a306 (patch)
tree89e203e9997c693db0999dc16aabca161309d790 /analysis.py
parent44093683acd6170fff2c78ab4f0283b36a2943ea (diff)
downloadhw1-eea912b9c327d397197212e326b7f2728d59a306.tar.gz
hw1-eea912b9c327d397197212e326b7f2728d59a306.tar.bz2
hw1-eea912b9c327d397197212e326b7f2728d59a306.zip
Add used python scriptsHEADmaster
Diffstat (limited to 'analysis.py')
-rw-r--r--analysis.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/analysis.py b/analysis.py
new file mode 100644
index 0000000..f9de516
--- /dev/null
+++ b/analysis.py
@@ -0,0 +1,14 @@
1import math
2
3for overs in range(1,8):
4 steps = 0
5 i = 2
6 n = pow(10, overs)
7 while i < n:
8 j = 1
9 while j < n:
10 steps = steps + 1
11 j = j * i
12 i += 1
13
14 print(f"With {n:8} it took {steps:8}")