+ 1

How do I solve end-of-module projects?

Because I solve one but the other test has another value and it goes wrong, how do I solve it?

30th Mar 2021, 5:37 PM
Andres GĂłmez
Andres GĂłmez - avatar
3 Answers
+ 3
Don't put the numbers from test cases in your code. Use input like you would take input from user and the testing routine will give the values for each test case via that. Example in python: x = 123 Change to: x = int(input())
30th Mar 2021, 7:08 PM
Benjamin JĂźrgens
Benjamin JĂźrgens - avatar
+ 1
Andres GĂłmez Try to understand all the conditions and use logic.
1st Apr 2021, 2:19 AM
❤️😍Prerana😍❤️
❤️😍Prerana😍❤️ - avatar