DEV Community

[Comment from a deleted post]
Collapse
 
sfiquet profile image
Sylvie Fiquet

It would help if:

  • you would tell us what your output is.
  • you would format your code with markdown so that it's readable. Sandwich your code between two lines of 3 backticks.

To debug I'd suggest you start by printing intermediate results so you can pinpoint where it goes wrong.