Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. def task1():
  2. total = 0
  3. for i in range (1, 51):
  4. print(i, 51 - i)
  5. total = total + (i / (51 - i))
  6.  
  7. print("The total is:", total)
  8.  
  9. task1()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement