Articles
Screencasts
Exercises
Training
Pastebin
Gift
/
Sign Up
Sign In
Greet a user by their name.
Editable Code
""" Greet a user by their name. Just an example to show that this Pastebin works with standard input """ print("Hi friendly web visitor! \N{waving hand sign}") name = input("What's your name? ") print(f"Welcome to the Python Morsels Pastebin tool, {name}!")
591 views
Copy
Code copied
Run
in Browser
pym.dev/p/22mxg/
URL copied
Need to share some Python code?
New Python snippet