Multiple raw_input and searching <p>Because <em>programming</em> is one of my favorite hobbies I started a small project in python.</p> <p>I'm trying to make a nutritional calculator for daily routine, see the code below:</p> <pre><code># Name: nutri.py # Author: pyn my_dict = {'chicken':(40, 50, 10), 'pork':(50, 30, 20) } foods = raw_input("Enter your food: ") #explode / split the user input foods_list = foods.split(',') #returns a list separated by comma print foods_list </code></pre> <p>What I want to do: </p> <ol> <li>Get user input and store it in a variable</li> <li>Search the dictionary based on user input and return the asociated values if the keys / foods exists</li> <li>Sum these values in different nutritional chunks and return them, something like: You ate x protein, y carbs and z fat etc.</li> </ol> <p>Any ideas are welcome.</p>