Multiplying values in a dictionary via function

I am really new to coding and don’t quite understand where I am messing up here

stuff = {
    'a': 5,
    'b': 10,
    'c': 2

def product(data):
    result = 1
    for i in data:
        result = result * data[i]
        return result

if you put a return statement inside the loop, the loop will halt at first iteration

Thank you so much, I originally was learning Lua and I guess I got too used to having ‘end’ marking everything.