Kasante95

for_loop_two_lists

Mar 20th, 2023
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. robots = ["Bing", "Bleep", "Bloop"]
  2. colors = ["red", "orange", "purple"]
  3. index = 0
  4. for each in robots:
  5.     print("My name is " + robots[index] + ". I am " + colors[index])
  6.     index = index + 1
Advertisement
Add Comment
Please, Sign In to add comment