What am I doing wrong? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

What am I doing wrong?

Iā€™m working on Chatv1p1 in Python. Iā€™m having trouble solving all 3 test cases without it marking the other 2 wrong. Iā€™ve tried them altogether and individually and it either says all are wrong when I do them altogether and one is right when I do just a single test case. Iā€™m very new to this and itā€™s driving me crazy, am I missing something to separate out the test cases? Any help is appreciated! https://code.sololearn.com/c5rQmKmtZD0U/?ref=app

16th Jun 2023, 4:05 AM
Alicia Smith
4 Respostas
+ 4
Alicia Smith , if you still having issues, post your latest / current code here.
16th Jun 2023, 10:58 AM
Lothar
Lothar - avatar
+ 2
i think you have to use the input function. name = input() message = ā€žNice to meet you, ā€ž +name
16th Jun 2023, 5:14 AM
Angela
Angela - avatar
0
Thank you! That makes total sense. Its still however marking it wrong. It is printing all 3 outputs in the same test case and marking it incorrect. Is there a way to separate these so it solves all 3?
16th Jun 2023, 4:19 AM
Alicia Smith
0
name = input() message = "Nice to meet you, " + name print(message) thats the complete code then all 3 are solved.
16th Jun 2023, 10:07 AM
Angela
Angela - avatar