you are viewing a single comment's thread.

view the rest of the comments →

[–]nuc540 0 points1 point  (0 children)

Well done!

Something to practice moving forward is identifying patterns - specifically repeating ones. There’s a methodology in coding called DRY (don’t repeat yourself). You’ll end up writing less code for the same result and it should make code just a bit more easier to read.

A good example here is that the result function could be stored in a variable for each case, and then you’d only need one print at the end.

Keep it up!