15 ответов
+ 8
Further to AJ's tip, really focus on the message: how do you do input?
If you're still finding it difficult, copy and paste your code here, like this explains:
https://code.sololearn.com/Wek0V1MyIR2r/?ref=app
+ 8
Learn lesson again
+ 5
What you are doing is called hardcoding. You are providing only 1 option for the problem/task.
Read how to take user input and declare your name variable that way.
Let me know how you go.
+ 5
How do you accept input in python?
Tell me that and I can help you with the rest.
+ 5
Ken muriithi
Please don't hijack other threads. If you have a similar problem, read the comments from the thread.
You have also hardcoded your answer. Another question, does the task say to have "Nice to meet you?"
+ 5
Do you mean a different name in each test case or 3 names for 1 test case?
The first, you just need to create 3 variables; name1, name2, name3 and then print them.
The second, you take my code from before and hit RUN.
+ 4
Cash Jhon pick a course from which language you'd like to learn and begin from there.
If you have questions, review the lesson, perform a search here in the forum and online, if you still have doubt, create a new question.
+ 4
Looks good to me Orber playz .
Try:
name = input()
print(name)
Remember, if the task asks for other text, you need to add it too.
E.g.
print("Have a nice day " + name)
+ 1
# Ask the user for input and store it in a variable
name = ("Tom")
print(name)
name = ("Alice")
print(name)
name = ("Bob")
print(name)
# Display the user input on the screen
#this is the code sorry it had to make me do it like this
+ 1
I still can't figure it out its been so long that I've been trying
+ 1
Can someone help me to start please
+ 1
name = " Mary"
message = "Nice to meet you,"+ name
print (message)
name = " John"
message = "Nice to meet you,"+ name
print (message)
Can someone please help me out...chatbot v1.1
What is wrong with this code??
+ 1
Ausgrindtube isn't it by name = input()? I don't fully remember
+ 1
Ok but it's asking me to do 3 different names now
+ 1
Like I mean 3 different names at once