It looks like your search function doesn't return contact information for Steve


#1

I dont know whats wrong with my code im sure its obvious i just cant see the problem.
Here is my code:: prices = {
'banana': 4,
'apple':2,
'orange':1.5,
'pear':3
}

stock = {
'banana':6,
'apple':0,
'orange':32,
'pear':15
}

for item in prices:
print item
print "Price: " + str(prices[item])
print "Stock: " + str(stock[item])

prices = {

"banana": 4,
"apple": 2,
"orange": 1.5,
"pear": 3
}

stock = {

'banana': 6,
'apple': 0,
'orange': 32,
'pear': 15
}

for key in prices:
print key
print "price: %s" % prices[key]
print "stock: %s" % stock[key]

def fizz_count(x):
count = 0
for item in x:
if item =="fizz":
count = count + 1
return count
fizz_count(['fizz', 'buzz', 'fuzz', 'fizz', 'fuzz'])


#2

Hi,

Can you please clarify what lesson this is as the category is rock, paper, scissors & title is for contact list and your code doesn't match either.

Is this build a cash register ?