Get input from the user
Write a program that receives the user's name from the input and print the following welcome message
What is your name: AmirHossein Welcome AmirHossein
Write a program that receives the user's name from the input and print the following welcome message
What is your name: AmirHossein Welcome AmirHossein
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
def greeting(name): print(f"welocm ,{name}") name=input("what's your name?") greeting(name)
name=input("نام خود را وارد کنید: ") print("خوش آمدید ",name)
# We wipe three lines # Get input from the user X = input("Esm Khod Ra Vared Konid:") # Input printing print("Welcome", X)
It was great
You're writing yourself. It was great.
a = input("your name:") print(f"welcome:{a}")
n = input("enter your name: ").strip()
if n.isalpha():
print('welcome {}'.format(n))
else:
print("""
Error!!
Username can only contain lowercase and uppercase letters.
""")
name = input("name? :") and print("wellcom " + 'name' )
This code has a problem.
The codie you wrote is this name? : Hossein Wellcom Name
# The name is taken from the user and stored in
name = input("what is your name")
# The name taken from the user with a welcome message is printed
print('welcome', name)
Submitting answers is currently unavailable.
You must be logged in to access this section.
Login/Sign up If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.