Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Print Variable Using the String Formatting with the help of % character

# print statement using string formatting 
first_name = "Bing"
last_name = "Chandler"
age =25
print("The full name of the Employee is %s %s and the age is %d " %(last_name, first_name,age))
Source by itsmycode.com #
 
PREVIOUS NEXT
Tagged: #Python #Print #Variable #Using #String #Formatting #character
ADD COMMENT
Topic
Name
4+4 =