Run ❯
Get your
own Python
server
Result Size:
625 x 565
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
age = 36 name = "John" txt = "His name is {1}. {1} is {0} years old." print(txt.format(age, name))
x
age
=
36
name
=
"John"
txt
=
"His name is {1}. {1} is {0} years old."
print
(
txt
.
format
(
age
,
name
))
His name is John. John is 36 years old.