Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

TypeError: can only concatenate str (not "list") to str

# u most likey did this: 
a = ['rav4'], ['td5'], ['yaris'], ['land rover tdi'] 
print( a + "thingy")
#instead do this
vehicle = ['car','bus','bike']
print ('these are vehicles', vehicle)
#use a comma and not a "+" operator
 
PREVIOUS NEXT
Tagged: #concatenate #str #str
ADD COMMENT
Topic
Name
6+1 =