Roman Numerals - dig deeper approaches and my solution

Hello everyone!

As I posted my solution for Roman Numerals exercise (aston-marcin's solution for Roman Numerals in Python on Exercism) I realized that I’ve made it with one of the approach in Dig Deeper - the “Loops over romans”.
I’d like to ask if my solution differs enough to be a part of this Dig Deeper approach? :slight_smile: It is based on multiplications and modulo divisions in iterations, so it is similar to last example in mentioned approach, but I also posted a single line list comprehension solution (in iteration no. 2).

It’s conceptually the same approach. The purpose of Dig Deeper is to explore approaches and concepts. Replacing a for loop with a list comprehension isn’t conceptually a different approach. It’s a slight variation on syntax. If the Dig Deeper showed every possible variation in syntax, it would be a bit overwhelming and distract from the actual substance of the concepts.

1 Like

All right, I’ve got it. Thank you for answer!