hbui
2024-07-23 0ef74701598a73c00851b572c661ce69d10d79ce
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