My request is simple but I do not know how to proceed:
I would like to translate an unless statement in python as followed:
taken_asks -= 1 unless taken_asks == 0
This is just one line of code which is part of a very big function. Any idea?
Thank you in advance !
taken_asks -= (1 if taken_asks != 0 else 0)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With