I have this code:
str = func(parameter)
if not str:
   do something.
the function func() return a string on success and '' on failure.
The do something should happen only if str actualy contain a string.
Is it possible to do the assigmnt to str on the IF statment itself?
 
     
     
     
     
    