Skip to content

Instantly share code, notes, and snippets.

@ofelix03
Created March 2, 2021 12:54
Show Gist options
  • Save ofelix03/a90d2ead64fface1ee27a6c0d8f791ee to your computer and use it in GitHub Desktop.
Save ofelix03/a90d2ead64fface1ee27a6c0d8f791ee to your computer and use it in GitHub Desktop.
f-string example
# 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