f string python
num_01, num_02, num_03 = 1, 2, 3
print(f"Numbers : {num_01}, {num_02}, {num_03}")
"""
>>> Numbers: 1, 2, 3
"""
f string python
num_01, num_02, num_03 = 1, 2, 3
print(f"Numbers : {num_01}, {num_02}, {num_03}")
"""
>>> Numbers: 1, 2, 3
"""
in python f then string meaning
>>> import datetime
>>> name = 'Fred'
>>> age = 50
>>> anniversary = datetime.date(1991, 10, 12)
>>> f'My name is {name}, my age next year is {age+1}, my anniversary is {anniversary:%A, %B %d, %Y}.'
'My name is Fred, my age next year is 51, my anniversary is Saturday, October 12, 1991.'
>>> f'He said his name is {name!r}.'
"He said his name is 'Fred'."
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