+ 3

How do I do chatbot v1 I'm on python

I'm on python and can't figure out how to do the chatbot v1 lesson

8th Jul 2023, 3:18 PM
Orber playz
16 Respuestas
+ 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
8th Jul 2023, 4:32 PM
Ausgrindtube
Ausgrindtube - avatar
+ 8
Learn lesson again
8th Jul 2023, 4:04 PM
A͢J
A͢J - avatar
+ 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.
9th Jul 2023, 6:26 PM
Ausgrindtube
Ausgrindtube - avatar
+ 5
How do you accept input in python? Tell me that and I can help you with the rest.
9th Jul 2023, 9:33 PM
Ausgrindtube
Ausgrindtube - avatar
+ 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?"
10th Jul 2023, 2:16 PM
Ausgrindtube
Ausgrindtube - avatar
+ 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.
11th Jul 2023, 6:14 AM
Ausgrindtube
Ausgrindtube - avatar
+ 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.
10th Jul 2023, 7:27 AM
Ausgrindtube
Ausgrindtube - avatar
+ 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)
10th Jul 2023, 8:49 PM
Ausgrindtube
Ausgrindtube - avatar
+ 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
9th Jul 2023, 7:26 AM
Orber playz
+ 1
I still can't figure it out its been so long that I've been trying
9th Jul 2023, 7:15 PM
Orber playz
+ 1
Can someone help me to start please
10th Jul 2023, 3:12 AM
Cash Jhon
Cash Jhon - avatar
+ 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??
10th Jul 2023, 2:09 PM
Ken muriithi
Ken muriithi - avatar
+ 1
Ausgrindtube isn't it by name = input()? I don't fully remember
10th Jul 2023, 3:45 PM
Orber playz
+ 1
Ok but it's asking me to do 3 different names now
10th Jul 2023, 9:13 PM
Orber playz
+ 1
Like I mean 3 different names at once
10th Jul 2023, 9:13 PM
Orber playz