Created
March 2, 2021 13:42
-
-
Save ofelix03/ee9a921638485defb7624e4cb5b00f95 to your computer and use it in GitHub Desktop.
Concatenating two f-strings
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
# 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