Advertisement
Tessthomps

debuggedweek3

Nov 14th, 2019
186
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 = 2019
  4.  
  5. for person in range(5):
  6. age = ages[person]
  7. name = names[person]
  8. year_of_birth = str(current_year - age)
  9. print(name + ' was born in ' + year_of_birth)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement