KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Does a Python equivalent to the Ruby ||= operator ("set the variable if the variable is not set") exist? Example in Ruby : variable_not_set ||= 'bla bla' variable_not_set == 'bla bla' variable_set = 'pi pi' variable_set ||= 'bla bla' variable_set == 'pi pi'
Tags (comma-separated)
Save Edits
Cancel