u=3 S=u print (u, S) for i in range (1,8): u=((1/2)*u)+1 S=S+u print (u, S)
To embed this project on your website, copy the following code and paste it into your website's HTML: