I was wondering, is it possible to do something like the following? The given code obviously doesn't work.
l = 5
(l == 5)*(k = 7) #Returns error message.
The reason is, I'd rather avoid doing something like the following for the project I'm currently working on.
if stmt1 == True or stmt2 == True:
if stmt1 == True:
k = 7
if k == 7:
# Evaluate suite
else:
# Evaluate different suite