Hong-Phuc Bui
2024-05-15 9879363a9e020c6a3c390852a986adb8d9cf7284
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