Is it cheating?

Back to General discussions forum

IDtenTERROR     2016-10-14 23:26:49

print(Hello World) Is it cheating if I solve one problem with the same solution I used on another? In questions 3 and 4 it's trivial to solve these with for loops in python, instead of using If/Then and the solution is the same for both. Is that considered cheating?

Quandray     2016-10-15 06:47:06
User avatar

Hi Joshua,

Welcome to CodeAbbey. As long as you use your own code, not somebody else's, you can solve the problems any way you like.

If you can write code that solves multiple problems I think you deserve a bit of kudos.

IDtenTERROR     2016-10-15 07:07:03

Thanks Quandry, I don't know that it says anything of my ability. It's mostly dumb luck and bullheaded persistance that I'm able to hack together a solution that just squeeks past codeabbeys checks. On the median problem (#41) for instance I just ended up sorting a list and printed the second item in the list, the same hack wouldn't work for a true median or even a list with more than 3 items.

In any case codeabbey is doing a great job keeping me immersed in the code.

Please login and solve 5 problems to be able to post at forum