Created
October 8, 2021 16:17
-
-
Save DanAmt/be549a9cc11aacbb1e207778783ae9f1 to your computer and use it in GitHub Desktop.
python function return tuple
This file contains hidden or 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
def top_tourist_locations_italy(): | |
first = "Rome" | |
second = "Venice" | |
third = "Florence" | |
return first, second, third | |
most_popular = top_tourist_locations_italy() | |
for i in (range(3)): | |
print(most_popular[i]) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment