Advertisement
SansPapyrus683

Loop Exercise 3

May 22nd, 2022
1,523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. ingredients = [
  2.     'snails',
  3.     'leeches',
  4.     'gorilla belly-button lint',
  5.     'caterpillar eyebrows',
  6.     'centipede toes'
  7. ]
  8.  
  9. # print(ingredients[0])
  10.  
  11. numbers = [1, 2, 3, 4, 5]
  12. for j in numbers:
  13.     print(str(j) + " " + ingredients[j - 1])
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement