+ 1

Understanding inputs and Outputs better

I'm having a really hard time understanding how to complete the practice tests labeled 'Messenger App' in the Coding Foundations of Python. It's asking me to ask for input on the name and age of a user, and then print it out. It shows that I need to have 3 examples, but when i type the names and ages of all three persons, it's all connected as one list.. How do I separate the user inputs from each other? It's supposed to look like this: name = Stacey age = 34 then below it it has two other sets, but when i try to type it out, it looks like this: name = Stacey age = 34 name = Michael age = 26 name = Anna age = 22 and then it shows the first section is correct, but then the other two sections have an exclamation mark, and the 'Help' doesn't help at all.. just tells you to upgrade..

24th Aug 2025, 2:20 AM
Robert
Robert - avatar
1 ответ
+ 4
Hi Robert, welcome to Sololearn. When Code Coach tests your work it runs your program several times and supplies different inputs with each run. Write the code so that it takes input from the console and then resolves the task in a general way with whatever input it receives.
24th Aug 2025, 3:48 AM
Brian
Brian - avatar