Making Functions more simple ?
https://code.sololearn.com/cA3A12a20A3a here is my code It reads from a txt file to display menu and when purchases are made it subtracts inventory and overwrites the text file then loops back to the main Im getting a Code smell error because I know that I should make it more simple but I'm not sure what the best way would be to split the big function to where it all comes together Anybody have any advice on how to make this code shorter? keep in mind that this is for an assignment and the instructions specifically want the code to use an exterior text file so that is why I have to read it and strip it and all that my goal is to achieve the same functionality with a shorter code or at least splitting that large function into two