Skip to content

Instantly share code, notes, and snippets.

@bfmcneill
Last active March 22, 2020 13:24
Show Gist options
  • Save bfmcneill/1f6d4d27f78882559a7c7d820590bc06 to your computer and use it in GitHub Desktop.
Save bfmcneill/1f6d4d27f78882559a7c7d820590bc06 to your computer and use it in GitHub Desktop.
How can I print a string with quotes and single quotes on python? Example: 36°43'25"
# https://www.facebook.com/groups/python.developers.py/permalink/3111769322201598/
def buried_treasure_location(degrees,minutes, seconds):
return f"{degrees}°{minutes}'{seconds}\""
print(buried_treasure_location(36,43,25))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment