Written by Emily Leng
How can you add strings in print statements? args
is an array of 5 variables than can be accessed with args[0]
, args[1]
etc. Write some python code in the IDE to concatenate the variables together before printing.
Hmmm... how can you turn that pesky integer into a string?
tmp = ""
for i in range(len(args)):
tmp += str(args[i])
print tmp
stupid_ints_causing_those_annoying_type_errorz