diff options
| author | Yigit Sever | 2020-11-09 03:11:55 +0300 | 
|---|---|---|
| committer | Yigit Sever | 2020-11-09 03:11:55 +0300 | 
| commit | eea912b9c327d397197212e326b7f2728d59a306 (patch) | |
| tree | 89e203e9997c693db0999dc16aabca161309d790 /analysis.py | |
| parent | 44093683acd6170fff2c78ab4f0283b36a2943ea (diff) | |
| download | hw1-eea912b9c327d397197212e326b7f2728d59a306.tar.gz hw1-eea912b9c327d397197212e326b7f2728d59a306.tar.bz2 hw1-eea912b9c327d397197212e326b7f2728d59a306.zip | |
Diffstat (limited to 'analysis.py')
| -rw-r--r-- | analysis.py | 14 | 
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 @@ | |||
| 1 | import math | ||
| 2 | |||
| 3 | for 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}") | ||
