Python Editor

Showing posts with label Python | Lesson2 | Nested For Loop. Show all posts
Showing posts with label Python | Lesson2 | Nested For Loop. Show all posts

Python | Lesson2 | Nested For Loop


#Iterate through each loop and print

countries = ["USA", "UK", "Brazil"]
teams = ["Team1", "Team2", "Team3"]

for country in countries:
  for team in teams:
    print(country, team)