Code viewer for World: Multiple Input Variables
"""
Topic: Input and Output – Multiple Input Variables
Purpose: Explore how to get more than one input from the user and display it
Output: Asks for multiple inputs and prints a message using them
"""

# -----------------------------
# 1. Getting multiple inputs
# -----------------------------
# We use 'await input()' because this program runs in the browser using Pyscript.
# In a normal Python script running on your computer, you would just use input().

name = await input("What is your name? ")       # First input
age = await input("How old are you? ")          # Second input
city = await input("Which city do you live in? ") # Third input

# -----------------------------
# 2. Displaying the inputs
# -----------------------------
# Using f-strings to combine all inputs into one message.

print(f"Hello {name}! You are {age} years old and live in {city}.")

# -----------------------------
# 3. Notes
# -----------------------------
# 1. Each call to 'await input()' stores the typed value in a separate variable.
# 2. All input values are strings by default.
# 3. f-strings allow us to display multiple variables in a single, readable message.