EduPy lessons use an IDE (integrated development environment) called Jupyter Notebook. The lessons use an updated version of Python called Python3. This lesson helps you set up either the installed version through Anaconda, or helps you access the free browser version. Although we recommend the downloaded version, you can use either for our lessons.
This lesson starts off with a quick explanation of the controls used in Jupyter Notebook. You will also the very basics of Python: printing, variables and inputs, all in this lesson.
Using Try Except to Control Input Types
Try Except statements are typically used to manage errors gracefully, but how can we use them to validate input types like lists and strings? In this post, I discuss using the characteristics of Booleans to force errors.
EduPy uses Jupyter Notebook, an IDLE. When creating complex Python projects it is advisable to use an IDE like PyCharm as they come with many additional benefits like autocomplete and error detection.
<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/312dfee3-6f53-41d8-a6fc-ddf3663afaa4/1200px-Jupyter_logo.svg.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/312dfee3-6f53-41d8-a6fc-ddf3663afaa4/1200px-Jupyter_logo.svg.png" width="40px" /> Jupyter Notebook Web-App
</aside>
<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/7f7c7add-0b6f-431f-b74b-28c7e50b092c/Background.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/7f7c7add-0b6f-431f-b74b-28c7e50b092c/Background.png" width="40px" /> Python Standard Library
</aside>
<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1a6d57a2-b718-4534-b733-def7618875d2/Gmail_Icon_(2013-2020).svg.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1a6d57a2-b718-4534-b733-def7618875d2/Gmail_Icon_(2013-2020).svg.png" width="40px" /> [Email me](mailto:[email protected]?subject=EduPy%20Inquiry)
</aside>
Last Updated: Apr 6th, 2022