Skip to content

Instantly share code, notes, and snippets.

@ofelix03
Created March 2, 2021 13:42
Show Gist options
  • Save ofelix03/ee9a921638485defb7624e4cb5b00f95 to your computer and use it in GitHub Desktop.
Save ofelix03/ee9a921638485defb7624e4cb5b00f95 to your computer and use it in GitHub Desktop.
Concatenating two f-strings
# This concatenates two f-strings
# 1st string f"This is {first_name} {last_name}
# 2nd string f"He is a {profession}"
print(f"This is {first_name} {last_name}. " f"He is a {profession}") # Result: This is Felix Otoo. He is a Software Engineer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment