dashboard
repositories
filestore
activity
search
login
python-kurs
/
example-projects-2024
example-projects-2024
summary
reflog
commits
tree
tickets
docs
forks
compare
blame
|
history
|
raw
update permutation
Hong-Phuc Bui
2024-04-29
931d213d4395c6d0ef93f30fe606da8ee3baa6d2
[python-kurs/example-projects-2024.git]
/
python-grundlage
/
harmonic-serie.py
1
2
3
4
5
6
7
8
n = 10
h = 1
algebraic_h = "1"
for k in range(2, n+2):
print(f"{algebraic_h} = {h}")
algebraic_h = f"{algebraic_h} + 1/{k}"
h = h + 1/k