SyntaxFix
Write A Post
Hire A Developer
Questions
var1 = var1 or 4
The only issue this might have is that if var1 is a falsey value, like False or 0 or [], it will choose 4 instead. That might be an issue.