project_python/2.1_lesson.2.20.py
2025-12-01 14:45:28 +05:00

8 lines
576 B
Python
Raw 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.

****** Задание 2 Параграф 2.2 ******
******* Напечатайте вопрос Как Вас зовут? в первой строке.
Используйте функцию input() для получения имени пользователя.
Выведите приветствие в формате «Привет, <имя пользователя>» во второй строке, заменив <имя пользователя> на введённое имя. *******
name = input("Как Вас зовут?\n")
print("Привет, {}".format(name))