Booleans from user input in Python text menus — 1 — Student Q&A

Опубликовано: 28 Сентябрь 2024
на канале: teclado
8,044
93

A frequent problem: trying to get boolean values from our users in Python text menus.

In this video we answer a student question where they faced this issue. How should you ask your users for True/False values in Python?

Also, how does the bool() function work?

We'll learn about refactoring and simplifying code which is frequently misused in this video as well!

Link to my introductory Python course: https://www.udemy.com/the-complete-py...

The bool() function documentation: https://docs.python.org/3/library/fun...