Why is my code not working? (Beginner programmer, python 1st language)
<p>I need some major improvements in my programming/coding and it's already been a month of this computer language field.</p>

<p>Right now I'm trying to create a class with 3 functions (lunch, breakfast, and dinner) and let's say I want to call the function lunch and add 'Strawberry' to the lunch list; it's supposed to add 1 to the list count (<code>list_count</code>) for amount of foods entered in the list count so far, and adds 'strawberry' to the dictionary. </p>

<p>So what I'm trying to do is I created a blank dictionary list (<code>lunch_list</code>) and created a starting count of food items (<code>lunch_count</code>)</p>

<p>So if I call lunch in the Food class, I'm trying to make the result like this:</p>

<pre><code>list_count: 1
lunch_name: Strawberry
lunch_list = {1:'Strawberry'}
</code></pre>

<p>I was ready to write this script but after writing this I confused myself a lot more. I feel lost. This is going to be embarassing for me but here is my code:</p>

<pre><code>class Food():

    lunch_count = 0
    lunch_list = {}

    def __init__(self, food_name):
        self.food_name = food_name 

    def lunch(self, lunch_count):
        lunch_count += 1
        lunch_list[lunch_count] = self.food_name
        return lunch_list




strawberry = Food('Strawberry')

print strawberry.lunch('Strawberry')
</code></pre>

<p>Easier to read and understand.</p>

<pre><code>lunch_count=0
lunch_item=""
lunch_menu={}
while lunch_item != "quit":
    lunch_item=input("Enter Item: ")
    menu_item=str(lunch_item)
    lunch_count+=1
    lunch_menu.update({lunch_count:menu_item})
    print(lunch_menu)
else:
    print("exiting")
</code></pre>

<p>Wrap this in a function and it adds an item and the count gets updated along with the newly entered string</p>

<p>Using python 3.5.2</p>

<p>If you like my answer please click the green arrow. 
Thanks.</p>

python