Created
October 10, 2021 16:49
-
-
Save moulik-source/cfbad701afb5a9b4555cc4a2b2d76373 to your computer and use it in GitHub Desktop.
f-string eg
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
# Python3 program introducing f-string | |
val = 'Geeks' | |
print(f"{val}for{val} is a portal for {val}.") | |
name = 'Tushar' | |
age = 23 | |
print(f"Hello, My name is {name} and I'm {age} years old.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment