Created
December 18, 2020 11:02
-
-
Save ayubmetah/34e0bb53752b7b614e525543bf49996a to your computer and use it in GitHub Desktop.
Nested Loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
teams = [ 'Man u', 'Tottenham', 'Arsenal', 'Chelsea', 'Liverpool' ] | |
for home_team in teams: | |
for away_team in teams: | |
if home_team != away_team: | |
print(home_team + " vs " + away_team) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment