Answers for "print f format python (multiple)"

0

print f format python (multiple)

>>> name = "Eric"
>>> profession = "comedian"
>>> affiliation = "Monty Python"
>>> message = (
...     f"Hi {name}. "
...     f"You are a {profession}. "
...     f"You were in {affiliation}."
... )
>>> message
'Hi Eric. You are a comedian. You were in Monty Python.'
Posted by: Guest on September-02-2021

Python Answers by Framework

Browse Popular Code Answers by Language