New course! Every coder should learn Generative AI!
Try a free lesson0
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!
3 Answers
+ 3
So there are errors in your program. A well-written program performs all tests. Check your program again or ask for help
+ 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..
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.