All items of enums are objects:
ab = Audiobook('mp3')
eb = Ebook('mobi')
pb = Paperback('A5')
hb = Hardback() # select 1 of 4, eg. Paperback
order = book.save(pb) # inject book format for save
You may create another formats in future, without change enum.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.