CodeSolved

Solved Programming Questions & Exercises

Get input from the user

Practice Easy 52/ Download 7469 Views Most popular

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

47 Answers

This answer is only visible to premium members
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

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
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

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
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

This answer is only visible to premium members

Subscription is currently unavailable.
def greeting(name):
	print(f"welocm ,{name}")
	
name=input("what's your name?")
greeting(name)
Roghaye.m Download Python
name=input("نام خود را وارد کنید: ")
print("خوش آمدید ",name)
Saeeda33 Download Python
# We wipe three lines
# Get input from the user
X = input("Esm Khod Ra Vared Konid:")
# Input printing
print("Welcome", X)
Programmer Download Python

It was great Programmer


You're writing yourself. It was great. Soheil


a = input("your name:")
print(f"welcome:{a}")
Hosien Download Python
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' )
J1625 Download Python

This code has a problem. User 2258


The codie you wrote is this name? : Hossein Wellcom Name User 3747


# 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)

Amirsaleh Download Python
<< Previous page 1 2 5 Next page >>

Submit answer

Submitting answers is currently unavailable.

×
×
Close