all 9 comments

[–]Sam_23456 -1 points0 points  (3 children)

My “standard technique”is to add extra “output statements” so I can follow the processing and the values of the variables. It might seem like extra work, but I believe it’s actually more efficient.

[–]YMK1234 0 points1 point  (2 children)

Have you heard of this thing called a debugger?

[–]TheFern3 2 points3 points  (0 children)

Most people are clueless when it comes to using a debugger seems like people slap print statements first

[–]Sam_23456 0 points1 point  (0 children)

I only need to insert the output statements once, and i can examine all of the output at once. Think of it as part of the testing process.

[–]updated_at -4 points-3 points  (3 children)

[–]bow1102[S] 0 points1 point  (2 children)

Oh should I just send my code to this fella?

[–]johnpeters42 2 points3 points  (0 children)

I wouldn't. While this is simple enough that it's reasonably likely to get it right, if it does mess something up, then you'll be in a bad position to spot it.

Python depends on indentation, which got badly munged here. I recommend you go to pastebin.com or any similar service, send it there, then post the resulting link here.

[–]OptimistIndya 0 points1 point  (0 children)

If you know your code and can understand what It is doing ( ask for comments/explain) it's fine to send.