embed variables python
#Pre 3.6
print('Hi, my name is {name} and my age is {age}'.format(**locals()))
#After 3.6
print('Hi, my name is {name} and my age is {age}')
embed variables python
#Pre 3.6
print('Hi, my name is {name} and my age is {age}'.format(**locals()))
#After 3.6
print('Hi, my name is {name} and my age is {age}')
python literal string
>>> r'abcdevt' # Use the r prefix
# Result:
'abc\dev\t'
python literal string
String literal is a datatype in python.
which is used to store characters of variable length
For example :-
a = 'This is a string'
b = 'You can also includes these @#$%^&*( or 12345678'
Above there are two variables a and b having string literal as there values
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us