init 100 python: # from typing import Iterator # from num2words import num2words # # def generate_ordinals(highest: int) -> Iterator[str]: # for i in range(1, highest+1): # word: str = num2words(i, lang='en', to='ordinal') # yield word.replace('-', '') # # print(repr(' '.join(generate_ordinals(50)))) def _register_scenes(): ordinals = 'first second third fourth fifth sixth seventh eighth ninth tenth eleventh twelfth thirteenth fourteenth fifteenth sixteenth seventeenth eighteenth nineteenth twentieth twentyfirst twentysecond twentythird twentyfourth twentyfifth twentysixth twentyseventh twentyeighth twentyninth thirtieth thirtyfirst thirtysecond thirtythird thirtyfourth thirtyfifth thirtysixth thirtyseventh thirtyeighth thirtyninth fortieth fortyfirst fortysecond fortythird fortyfourth fortyfifth fortysixth fortyseventh fortyeighth fortyninth fiftieth' for number, ordinal in enumerate(ordinals.split(), start=1): setattr(persistent, ordinal+'Scene', True) setattr(persistent, ordinal[:-1]+'Scene', True) # some have typos setattr(persistent, 'scene_' + str(number), True) # new scene pattern _register_scenes()