Answers for "Python Print Variable Using the string formatting with positional arguments {}"

0

Python Print Variable Using the string formatting with positional arguments {}

# string formatting without positional specifiers
first_name = "Bing"
last_name = "Chandler"
age =25
print("The full name of the Employee is {0} {1} and the age is {2} ".format(last_name, first_name,age))
print("The full name of the Employee is {1} {0} and the age is {2} ".format(last_name, first_name,age))
Posted by: Guest on January-26-2022

Code answers related to "Python Print Variable Using the string formatting with positional arguments {}"

Python Answers by Framework

Browse Popular Code Answers by Language