project_python/2.2_lesson.1.20.py
2025-12-09 14:40:54 +05:00

15 lines
579 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

******Заданиие 1 Параграф 2.2******
*** напишите программу, которая сначала познакомится с пользователем, а затем поинтересуется его настроением.***
if name == "main":
print('Как Вас зовут?')
name = input()
print(f'Здравствуйте, {name}!')
print('Как дела? ')
mood = input()
if mood == 'хорошо':
print('Я за Вас рада!')
if mood == 'плохо':
print('Всё наладится!')