Created
March 5, 2019 15:03
-
-
Save saxbophone/95ffc41781a8f14bab9ab291ed07c059 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env python3 | |
compass_directions = [ | |
'North', 'South', 'East', 'West', | |
] | |
places = [ | |
'United Kingdom', 'Britain', 'England', 'Scotland', 'Wales', | |
'Northern Ireland', | |
] | |
for place in places: | |
for direction in compass_directions: | |
print( | |
'University of the {0} of {1} (U.{2}.{3}.)'.format( | |
direction, place, direction[0].upper(), place[0].upper() | |
) | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment