Rely struggling with Ballpark Orders
Hi, I am really struggling with the ballpark orders problem. I know what I want to do and even though I've googled a lot I can't quite put the pieces together to make functional code. Is my psuedocode is: - create a menu (dictionary with key:values of items: prices) - define a check() function to check if the input contains a key item in the dictionary. If input does contain a key to then retrieve the value and return it. If it does not contain a key to replace it with the coke key or to just add 6. - take a input from the user - run check() on user input - total the values returned - add tax - print final number. So far I've created a dictionary for the menu, and no I'm stuck on my check() function where I can't work out how to check the input for 4 items. So u need to run it 4 times, do I need to specify somewhere that check() should take four arguments, should I specify that the input should be four arguments? I'm feeling a bit lost, am I on the right track?