--- # Quick Quiz - Python Trivia Facts 1) Was **Python** created as a **hobby project**? 2) Where does the name "**Python**" for the programming language come from? 1) Guido van Rossum's favorite *[pet animal](https://en.wikipedia.org/wiki/Python_(genus))* 2) Guido van Rossum's favorite *[comedy TV show](https://www.youtube.com/watch?v=JrdEMERq8MA)* 3) Guido van Rossum's favorite *[artwork](https://www.metmuseum.org/art/collection/search/398703)* 4) Guido van Rossum's favorite *[mythical creature](https://en.wikipedia.org/wiki/Python_%28mythology%29)* 3) Is **Python** open source? --- # One More ~~Python~~ Programming Fun Fact * Try `0.1 + 0.2` in Python interactive shell * **Do not worry! It is NORMAL!** * This happens in all programming languages that use floating point decimals, **not just in Python**. * Because computers represent decimal numbers in **binary (Base-2) format**. * Check out <https://0.30000000000000004.com> * How to avoid? * Consider using the [`decimal` library](https://docs.python.org/3/library/decimal.html) if precision matters to your program. * We could use `print(f'{result:.1f}')` to hide such floating point errors. * Read [more discussions on stackoverflow](https://stackoverflow.com/questions/19473770/how-to-avoid-floating-point-errors)
--- <style scoped> h1 { font-size: 1.5em; } </style> # Debugging 101 - What to Do When Coding Gets Tough 1) Do you understand **concepts** and **syntax** being used? 2) Have you attempted **example/demo code**? 3) Have you read **supplemental** materials? 4) Have you tried any **debugging approaches**? 5) Have you had enough **rest**? Are you feeling tired or stressed? 6) Have you asked for **help**? 1) Reach out to your peers, professors, or online communities. 2) Use AI coding assistants or tools for suggestions. 3) Remember to give credits for use of code in comments.