+ 2

Help with Input Output

Can someone help me with practice lesson “Chatbot v1.0” the output keeps displaying all 3 names and I don’t know how to separate them from each other to test 1, test 2 and test 3. Please help!

25th Jun 2024, 6:03 PM
Rigoberto Gutierrez
Rigoberto Gutierrez - avatar
4 Antworten
+ 3
you don't have to separate, just write the code properly. the test will include all the necessary thing and will run, will test if your code is valid or not. share your code if you were stuck somewhere
25th Jun 2024, 6:07 PM
Mihaly Nyilas
Mihaly Nyilas - avatar
+ 4
Rigoberto Gutierrez , (i am assuming that you are talking about the `chatbot v1.0` exercise from the tutorial `coding foundations`) don't get confused from the samples that shows multiple input names. the exercise is meant to take *1* input at a time by using the input() function, store it in a variable and just output it.
25th Jun 2024, 6:48 PM
Lothar
Lothar - avatar
+ 2
I got it. Thank you all 🫡
27th Jun 2024, 9:22 PM
Rigoberto Gutierrez
Rigoberto Gutierrez - avatar
+ 1
Thank you so much for your responce. You are right, it is the Chatnot v1.0 exercise from the tutorial. I enter name = (“Tom”) then print(name) and it gives me a green check mark on the first test and red on the other 2 because the name is being output to all. I cant seam to isolate to Test 1. Plese help, I feel sad.
27th Jun 2024, 6:08 PM
Rigoberto Gutierrez
Rigoberto Gutierrez - avatar