DEV Community

Discussion on: Basics of Python "String"

Collapse
 
cgifl300 profile image
cGIfl300

python.org/dev/peps/pep-0257/ :-) """blah""" is just a string as a normal "string" or 'string'.

You also forgot the f-string.

a = "Hello"
print(f"{a} World!")
Enter fullscreen mode Exit fullscreen mode
Collapse
 
mouly22 profile image
Umme Abira Azmary

Hey! It just slipped my mind.. Thank you @cgifl300 😊

Collapse
 
mouly22 profile image
Umme Abira Azmary

As we know """string""" with triple quotations are normal '''string''' but we can also add multiple lines using it; that's why I just mentioned it.. well I will clarify it! Thank you @cgifl300