Lesson 3 Python(basic) Data Comparison, bool, assert.

preview_player
Показать описание
Thank you for watching and checking out the description.
Here's something useful for you.

Task 1:
Ask the user to enter a string and check if the given string is empty by converting it to a boolean value.

Task 2:
Ask the user for two numbers and check if at least one of them is even.

Task 3:
The user must enter the password twice for confirmation. It is necessary to check whether both entered passwords match. If the passwords match, display the message "password is correct". If the passwords do not match, the user receives an error.
Рекомендации по теме