Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to combine strings python

# The + operator can be used to concatenate two different strings.

x = "hello "
y = "world!"

# Concatenate two strings
print(x + y)
# OUTPUT: hello world!
Source by www.educative.io #
 
PREVIOUS NEXT
Tagged: #combine #strings #python
ADD COMMENT
Topic
Name
6+8 =