0

How to keep two correct outputs simultaneously?

In section 'Lists' at exercise 'Lesson: Lists' the two correct programs I created can't seem to co-exist and therefore impossible to proceed? I get correct outputs for both test case #1 and #2 but as I enter one the other becomes incorrect and therefore the next exercise remains locked. Am stuck. Please help. Thx!

3rd Apr 2023, 10:08 AM
Charlotte
2 Answers
+ 2
Share your code by saving playground, along with task description, if you unable to find mistake next. So that, It's helps you know your mistake, if any there..
3rd Apr 2023, 10:18 AM
Jayakrishna 🇼🇳
0
Charlotte make sure the program is able to solve the task for any valid input by reading from the console. Don't hard code test values. Code Coach supplies the different test values to your running program through console input.
3rd Apr 2023, 3:45 PM
Brian
Brian - avatar