Last active
March 22, 2020 13:24
-
-
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"
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
# 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