Skip to content

Instantly share code, notes, and snippets.

@raeq
Last active May 5, 2020 05:02
Show Gist options
  • Save raeq/183f5649bd8f71a3e1f4500b5bcc1d00 to your computer and use it in GitHub Desktop.
Save raeq/183f5649bd8f71a3e1f4500b5bcc1d00 to your computer and use it in GitHub Desktop.
def geolocation(landmark):
if landmark == "Eiffel":
return 48.858093, 2.294694
elif landmark == "Statue":
return 40.689247, -74.044502
elif landmark == "Opera":
return -33.858611, 151.214167
else:
return 0, 0
print (f"Eiffel: {geolocation(landmark='Eiffel')} ")
print (f"Statue: {geolocation(landmark='Statue')} ")
print (f"Opera: {geolocation(landmark='Opera')} ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment