+ 6
Python
Does anyone know how to ask the user to enter there name then say "hello (user)"?
18 Answers
+ 3
The thing is Lothar,i went through it and couldn't find how to take an input then use that in something else. E.g. what I'm asking
+ 13
name = input ("Please enter your name:")
Print ("hello ", name)
+ 8
This is pure basics. I recommend to go through the python tutorial to learn more about it. https://www.sololearn.com/Course/Python/?ref=app
+ 8
Hot today and 4 up votes for non-question 😐
+ 3
U r welcome
+ 3
Yes it is eassy first we need to take a input and than add that it to yout string.
name = input("enter your name please: ")
print("Welcome {a}!".format(a = name))
+ 2
Thank you :)
+ 2
name = input ("Please enter your name :")
Print (f"hello {name}")
+ 2
name = input ("Please enter your name :")
Print ("hello {}".format(name))
+ 2
name = input ("Please enter your name :")
Print ("hello "+name)
+ 1
I'm not doing homework, I'm practicing for my NEA Piña
+ 1
u must send a letter to your customer and ask him/her name.
then put the name in your code.
Good luck Coder.
:))
+ 1
name = input("Tell me your name")
print("hello " + name)
0
use the input method of python and do remember one thing that this function will give you the input in string.
user_name = input("Enter you name: ")
print(f"Hello {user_name}")
0
you could do
print("hello" input("*whispers* uhh what was your name again?"))
or something like that
0
uhh sorry about my last post i forgot to put a comma after the hello part
0
name=input("enter your name:")
Print("hello",a)
0
name=input("enter your name:")
Print("hello"+ name)