Created
March 2, 2021 12:54
-
-
Save ofelix03/a90d2ead64fface1ee27a6c0d8f791ee to your computer and use it in GitHub Desktop.
f-string example
This file contains 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
# Examples of f-string | |
first_name = "Felix" | |
surname = "Otoo" | |
print(f"Hello, I am {first_name} {surname}") # Result: Hello, I am Felix Otoo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment