How to iterate over function arguments

Posted by Jack on Stack Overflow See other posts from Stack Overflow or by Jack
Published on 2010-05-26T11:48:44Z Indexed on 2010/05/26 12:31 UTC
Read the original article Hit count: 166

Filed under:
|
|

I have a Python function accepting several string arguments def foo(a, b, c): and concatenating them in a string. I want to iterate over all function arguments to check they are not None. How it can be done? Is there a quick way to convert None to ""?

Thanks.

© Stack Overflow or respective owner

Related posts about python

Related posts about beginner