Advertisement
Senseidiana

debuggingz

Feb 22nd, 2020
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. names = ['Alice', 'Bob', 'Carol', 'Dan', 'Eve']
  2. ages = [22, 32, 18, 57, 41]
  3. current_year = 2017
  4.  
  5. for person in range(5):
  6. age = ages[person]
  7. name = names[person]
  8. year_of_birth = current_year- age
  9. print(name + ' was born in ' + str(year_of_birth))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement