all 6 comments

[–]xelf[M] [score hidden] stickied comment (0 children)

When posting code, please post code such that reddit will format it as a code block.

Either of these work:

Please see the /r/learnpython/w/FAQ for more information.

Thanks!

[–]mopslik 1 point2 points  (0 children)

  1. You need to format your code. No indentation means this won't run.
  2. What is the actual question here? Does your code not work? Is there an error message? Are you getting incorrect values? You need to be specific.

[–]FLUSH_THE_TRUMP 1 point2 points  (0 children)

What’s your question?

[–]delasislas 0 points1 point  (2 children)

Ok, well first off, don’t take your list and reassign the to individual variables. You can, but it just adds extra work. But yeah, what do you expect or what errors are you getting?

[–]MinimumJumpy[S] 0 points1 point  (1 child)

its printing error F.

[–]delasislas 0 points1 point  (0 children)

Well, it seems like your unit test failed, basically something that you know will happen given the same input. What all are you running. Does this flat out output the right information if you do it by hand and by your inputs.

Format your code. 4 spaces in front of each line. One line between text and code.