From the docs, raw_input() reads a line from input, converts it to a string (stripping a trailing newline), and returns that.
with that note,
a = 'testing: '
sep = '-'
c = raw_input('give me some args: ') <--- giving 'a b c d'
def wrap( a, sep, *c):
print a + sep.join(c)
wrap(a, sep, c)
str = 'a b c d'
print sep.join(str)
they should both print out the same thing but...
print a + sep.join(c) gives testing: a b c d
print sep.join(str) gives a- -b- -c- -d
why doesn't sep.join() works inside wrap function?
EDIT changing from *c to c makes the output the same but this somewhat confuses me because i thought *c unpacks the args but when i print c, it give ms ('a b c d',) compared to a string of 'a b c d' so in a sense, it is combining them to a single tuple entity which is the opposite of unpacking?
or... it does not unpack string but only lists?