from time import sleep
import random

def random1():
  print("this is a random piece of food from your fridge: ")
  rand=random.choice(list1)
  print(rand)

def ham():
  print("calories=150")
  
def milk():
  print("If you have 3 litres, then calories = 3000. ")
  print("If you have 2 litres, then calories = 2300. ")
  


list1=[]
objects=["gun", "table", "chair"]

while True:
  user=input("Name one thing in your fridge: ")
  user=user.lower()
  list1.append(user)
  
  if user in objects:
    print("This does not belong in a fridge. ")
    list1.remove(user)
  if user == "nothing":
    list1.remove("nothing")
    print(list1)
    break
  print(list1)

if "ham" in list1:
  ham()

elif "milk" in list1:
  milk()


4a894ee263f6315b26c207b80a95613d0b43e17c
<mask token>


def ham():
    print('calories=150')


def milk():
    print('If you have 3 litres, then calories = 3000. ')
    print('If you have 2 litres, then calories = 2300. ')


<mask token>

<mask token>


def random1():
    print('this is a random piece of food from your fridge: ')
    rand = random.choice(list1)
    print(rand)


def ham():
    print('calories=150')


def milk():
    print('If you have 3 litres, then calories = 3000. ')
    print('If you have 2 litres, then calories = 2300. ')


<mask token>
while True:
    user = input('Name one thing in your fridge: ')
    user = user.lower()
    list1.append(user)
    if user in objects:
        print('This does not belong in a fridge. ')
        list1.remove(user)
    if user == 'nothing':
        list1.remove('nothing')
        print(list1)
        break
    print(list1)
if 'ham' in list1:
    ham()
elif 'milk' in list1:
    milk()

<mask token>


def random1():
    print('this is a random piece of food from your fridge: ')
    rand = random.choice(list1)
    print(rand)


def ham():
    print('calories=150')


def milk():
    print('If you have 3 litres, then calories = 3000. ')
    print('If you have 2 litres, then calories = 2300. ')


list1 = []
objects = ['gun', 'table', 'chair']
while True:
    user = input('Name one thing in your fridge: ')
    user = user.lower()
    list1.append(user)
    if user in objects:
        print('This does not belong in a fridge. ')
        list1.remove(user)
    if user == 'nothing':
        list1.remove('nothing')
        print(list1)
        break
    print(list1)
if 'ham' in list1:
    ham()
elif 'milk' in list1:
    milk()

from time import sleep
import random


def random1():
    print('this is a random piece of food from your fridge: ')
    rand = random.choice(list1)
    print(rand)


def ham():
    print('calories=150')


def milk():
    print('If you have 3 litres, then calories = 3000. ')
    print('If you have 2 litres, then calories = 2300. ')


list1 = []
objects = ['gun', 'table', 'chair']
while True:
    user = input('Name one thing in your fridge: ')
    user = user.lower()
    list1.append(user)
    if user in objects:
        print('This does not belong in a fridge. ')
        list1.remove(user)
    if user == 'nothing':
        list1.remove('nothing')
        print(list1)
        break
    print(list1)
if 'ham' in list1:
    ham()
elif 'milk' in list1:
    milk()

from time import sleep
import random

def random1():
  print("this is a random piece of food from your fridge: ")
  rand=random.choice(list1)
  print(rand)

def ham():
  print("calories=150")
  
def milk():
  print("If you have 3 litres, then calories = 3000. ")
  print("If you have 2 litres, then calories = 2300. ")
  


list1=[]
objects=["gun", "table", "chair"]

while True:
  user=input("Name one thing in your fridge: ")
  user=user.lower()
  list1.append(user)
  
  if user in objects:
    print("This does not belong in a fridge. ")
    list1.remove(user)
  if user == "nothing":
    list1.remove("nothing")
    print(list1)
    break
  print(list1)

if "ham" in list1:
  ham()

elif "milk" in list1:
  milk()

