Created
February 25, 2019 21:37
-
-
Save BurhanH/7879c3999e33503b2d70d0a291a4481c to your computer and use it in GitHub Desktop.
string interpolation, Python 3.6 and above
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
# -*- coding: utf-8 -*- | |
name = 'User' | |
f'Hello, {name}!' | |
#'Hello, User!' | |
# most powerfull part is | |
a = 10 | |
b = 4 | |
f'Ten plus four is {a + b}' | |
#'Ten plus four is 14' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment