Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to concatenate two strings in python

# use {}, where u want to place integer, or any other datatype.
# Use .formate at the end of string, 
# and finally place data variable in parentheses  
a = 123.1133
b = "Username"
c = True
print("a = {}".format(a))
print("b = {}".format(b))
print("c = {}".format(c))
Source by www.pythonforbeginners.com #
 
PREVIOUS NEXT
Tagged: #concatenate #strings #python
ADD COMMENT
Topic
Name
5+5 =