A café kiosk asks customers to pick a menu option by number, from 1 to option_count. It keeps asking until it gets a good answer.
The replies come in as a list. Write menu_session(replies, option_count) that returns the list of messages the kiosk shows, in order. For each reply:
| Reply | Message |
|---|---|
int() can't read it | "Please type a number." |
a number outside 1 to option_count | "Choose 1 to N.", with N replaced by option_count |
a good choice k | "You chose k.", and the kiosk stops asking |
If the replies run out before a good choice, add "No choice made." at the end.