Nov-16-2018, 10:37 AM
Hi everybody, I got a question
Is using "or" in assign statement is bad practice?
How right do this in python, in more python way?
Thanks for answering.
variable = dict_.get('var_name') or 'DEFAULT'dict_ may has key, or not, his value is may empty or not. How I can decide this task? I don't wont reffer to dictionary twice.
Is using "or" in assign statement is bad practice?
How right do this in python, in more python way?
Thanks for answering.