I’ve been confused of list comprehension in Python, although its shorthand doing for loop is very convenient. I’m not sure if what’s in the join() function’s parameter below is list comprehension …
Tag: generator-expression
Generator as function argument
Can anyone explain why passing a generator as the only positional argument to a function seems to have special rules? If we have: def f(*args): print “Success!” print args This …