Skip the given places to the next roman numeral. Examples: >>> skip('I') 'II' >>> skip('VII') 'I' >>> skip('I', 2) 'III'
(roman_numeral, skip_count=1)
| 523 | |
| 524 | |
| 525 | def skip(roman_numeral, skip_count=1): |
| 526 | """Skip the given places to the next roman numeral. |
| 527 | |
| 528 | Examples: |
| 529 | >>> skip('I') |
| 530 | 'II' |
| 531 | >>> skip('VII') |
| 532 | 'I' |
| 533 | >>> skip('I', 2) |
| 534 | 'III' |
| 535 | """ |
| 536 | i = numerals.index(roman_numeral) + skip_count |
| 537 | return numerals[i % 7] |
no outgoing calls
no test coverage detected