Files
Python-tutorial/Basic/wiki.txt
Hizenberg469 799c8c84f7 first commit
2025-03-05 14:15:49 +05:30

23 lines
501 B
Plaintext

-> String:
Multi-line string:
For ex:
'''
Hello
There
'''
Formatting String:
for python 3:
f'....{<variable-name>}.....{<variable-name}...'
'Hello there {} and {}'.format(name1, name2)
'Hello there {1} and {0}'.format(name1, name2)
{1} : name2
{0} : name1
'Hello there {var1} and {var2}'.format(var1 = value, var2 = value)