Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Joining String And Variable

j = [1, 2, 3]
for x in range(len(j)):
    print("hello", x, "world")
#this is equivalent to JavaScripts + sign. The same in JavaScript would have been "hello"+x+"world"
 
PREVIOUS NEXT
Tagged: #Joining #String #And #Variable
ADD COMMENT
Topic
Name
9+7 =