MCPcopy Create free account
hub / github.com/bspaans/python-mingus / skip

Function skip

mingus/core/progressions.py:525–537  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

523
524
525def 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]

Callers 5

substituteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected