CS50 Python | Week 1 | Conditionals | Problem Set 1 | Deep Thought

preview_player
Показать описание
In cs50 python, Week 1, Conditionals, Problem Set 1, we will work on a problem set called Deep Thought. We will use two ways to solve the problem:
First way: using match - case
Second way: using if, else

Tutorial on using match - case:

cs50p Week 0 tutorials and solutions:
setup and GitHub with SSH key:

--------------------------------------------------------------------------------------------------------
#python #cs50p
Рекомендации по теме
Комментарии
Автор

I did this differently. I converted the input to lowercase and replaced the spaces with "" and "-" with "" then just checked for 42 or fortytwo. I didnt use .strip.

PinchCactus