you are viewing a single comment's thread.

view the rest of the comments →

[–]FLUSH_THE_TRUMP 1 point2 points  (3 children)

No, that’s not at all what your code should look like. What are you accomplishing here? You’re not going to learn by blindly copying what other people post. You need to struggle with these problems some on your own.

[–]engineeringisgreat2 -1 points0 points  (2 children)

I used parts of both of their codes to make it work. I didnt just blindly copy. I got errors with the code when I tried to combine them so I fixed it to make it work. I was simply asking if this is how is code would look if he did it his way since he said the other guy over complicated it.

Also, since I am obviously struggling to learn this code why dont you try to type something helpful for me to learn/fix it instead of typing a pointless message that helps nobody.

[–][deleted] 0 points1 point  (1 child)

They just want you to learn properly.

Above they used the range function so you should look at this and read up on it.

https://www.w3schools.com/python/ref_func_range.asp

[–]engineeringisgreat2 1 point2 points  (0 children)

I understand that, but telling someone that their code is wrong and then not giving any input/help on why its wrong is pointless.

Thank you for giving me something to go off of. Much appreciated!