Input and Output
Python uses the input() function to take input and print() to display output.
Taking User Input
name = input("Enter your name: ")
print("Hello, " + name)Note: input() always returns a string. Convert if needed:
age = int(input("Enter your age: "))Printing Output
print("Welcome", name)
print(f"You are {age} years old")