SHARE
TWEET

debuggedweek3

Tessthomps Nov 14th, 2019 116 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top