I'd like to know how to print out the most expensive and cheap menu given like this. I'm going to use min and max, but it's divided into menu and prices, so I don't even know what to do. I'd appreciate it if you could help me as a beginner.python
If you divide each string into spaces and save each string as an array, you will have information about the same menu in the same order.
If you transform the data into the above form, the price of menus[i] is prices[i].
It won't be difficult to get the maximum/minimum value when you know the price for each menu. There's got to be a lot of course.
© 2022 pinfo. All rights reserved.