I have a method/function that get's passed several variables that possibly have None value. How can I check all variables for None value and replace it with a string in the most pythonic way possible?
Example code:
def logData(self, var1=None, var2=None, var3=None):
    if var1 is None:
         var1 = "---"
    if var2 is None:
         var2 = "---"
    if var3 is None:
         var3 = "---"
    # what I would prefer / pseudo code:
    if list(var1, var2, var3) is None:
         list[1] = "---"
 
     
     
    