Python Programs | IT Developer
IT Developer

Python Programs



Share with a Friend

Python Programs - Input and Output

Take user input and print greeting - Python Program

# Prompt the user to enter their name and store it in a variable name = input("Please enter your name: ") # Print a greeting using the entered name print(f"Hello, {name}!")

Output

 
OUTPUT  :
Please enter your name: Ronnie
Hello, Ronnie!