Answers for "format %% in python"

1

how to do formatting in python with format function

age = 36
txt = "his age is {}"
print(txt.format(age))
Posted by: Guest on December-22-2021

Python Answers by Framework

Browse Popular Code Answers by Language