Closed Aeronas closed 4 years ago
Great catch! I just updated the cheatsheet. Appreciate your help on this :)
What can I say? You taught me well! Haha (Taking your Udemy course Zero to Mastery)
On Wed, Feb 5, 2020 at 5:51 AM Andrei Neagoie notifications@github.com wrote:
Closed #7 https://github.com/aneagoie/ztm-python-cheat-sheet/issues/7.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aneagoie/ztm-python-cheat-sheet/issues/7?email_source=notifications&email_token=AN2ST4LH7LLSXXCUVLEVYTTRBKY3PA5CNFSM4KQFEUXKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOWNTN47A#event-3009863292, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN2ST4OOQJJPXQCZJLAH5UTRBKY3PANCNFSM4KQFEUXA .
-- "If you want something you've never had, you must be willing to do something you've never done."
Eric Emery (208) 789-5736
Hey just a note, looks like in the logic operators your 2nd example for OR states:
1 > 3 or 4 > 1 # False
But because it's OR and 4 is greater than 1 this should come back as True.print(bool(1 > 3 or 4 > 1))
Returns>>True