Skip to content Skip to sidebar Skip to footer
Showing posts with the label Logic

Bug With Logic Operator "or"?

I'm learning the language python. And although it is very simple indeed, I got some unexpected … Read more Bug With Logic Operator "or"?

How Do Boolean Operations Work With Parentheses In Python 2.7?

Found this little oddity while playing around. >>> 'Hello' == ('Hello' or … Read more How Do Boolean Operations Work With Parentheses In Python 2.7?

Python Deleting Certain File Extensions

I'm fairly new to Python, but I have gotten this code to work, and in fact, do what it's in… Read more Python Deleting Certain File Extensions