"""
Topic: Input and Output – Single Input
Purpose: Understand how to get user input and display it using print
Output: Asks for a user input and prints it in the terminal
"""
# -----------------------------
# 1. Getting input from the user
# -----------------------------
# In this program, we use 'await input()' because we are running it in the browser using Pyscript.
# In a normal Python script on your computer, you would just use input() without await.
name = await input("What is your name? ") # Stores user input in the variable 'name'
# -----------------------------
# 2. Displaying the input
# -----------------------------
# We can print the input back to the terminal using print().
print(f"Hello {name}! Nice to meet you.") # Greets the user using an f-string
# -----------------------------
# 3. Notes
# -----------------------------
# 1. The variable 'name' stores the text typed by the user.
# 2. f-strings allow us to insert variables directly into the message.
# 3. All input from 'await input()' is treated as a string by default.