Онлайн компилятор Python

name = input("Как тебя зовут? ") print(f"Привет, {name}!")
This code asks the user for their name and then prints a greeting that includes that name.

- The input function returns a string, so the variable name will always be text.
- The f-string uses curly braces to insert the value of name into the message.