ardiloot

Untitled

Dec 16th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1.  
  2. a = [3, 5, 60, 100]
  3.  
  4. for i in range(len(a)):
  5.     if a[i] > 5:
  6.         a[i] += 100
  7.     else:
  8.         a[i] += 120
  9.        
  10. print(a)
Advertisement
Add Comment
Please, Sign In to add comment