Cool Python tricks you are not using, but you should.
Ternary operator
ans = z if a > b else c
is same as
if a > b:
ans = z
else:
ans = c
Short circuit
result = counter or 15
is same as
result = counter if counter else 15
is same as
if not counter:
result = 15
else:
result = counte...
soumendrak.hashnode.dev2 min read
Ramanujadasu VSRR
excellent capturing real time scneairos