Skip to content

Instantly share code, notes, and snippets.

@DanAmt
Created October 8, 2021 16:17
Show Gist options
  • Save DanAmt/be549a9cc11aacbb1e207778783ae9f1 to your computer and use it in GitHub Desktop.
Save DanAmt/be549a9cc11aacbb1e207778783ae9f1 to your computer and use it in GitHub Desktop.
python function return tuple
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