Advertisement
yragi_san

Enumerate cast heights

Oct 8th, 2020
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. cast = ["Barney Stinson", "Robin Scherbatsky", "Ted Mosby", "Lily Aldrin", "Marshall Eriksen"]
  2. heights = [72, 68, 72, 66, 76]
  3.  
  4. for i, character in enumerate(cast):
  5. cast[i] = character + " " + str(heights[i])
  6.  
  7. print(cast)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement