- 1

Faulty Code Projects?

Why yours python code project is so stupid to reject a code proposal, where the user will be asked with text to enter his weight and height!!? Sorry, the same code without this "text" passes will show as passed!?

19th Apr 2022, 4:48 PM
Paolo Sfera
Paolo Sfera - avatar
3 odpowiedzi
+ 2
Any code that produces the expected output for each given input is accepted as correct. Even if the code is actually incorrect. But the output has to be *exactly* the same as the expected output. Otherwise it would be difficult to automate the testing process.
19th Apr 2022, 4:59 PM
Simon Sauter
Simon Sauter - avatar
+ 1
In my point of view coding is also an expression of creativity. So the same code with a little more text, which explain to the potential user why and how the program works, should work in the code projects.
19th Apr 2022, 4:56 PM
Paolo Sfera
Paolo Sfera - avatar
0
The majority of projects requires you to make use of input statements. Then the test cases consist of sololearn providing a number of different inputs for your code and comparing the output to the expected output.
19th Apr 2022, 4:53 PM
Simon Sauter
Simon Sauter - avatar