Why does my Python function return 'None' instead of ('Paul', 29, 1.75)?
It's an identation problem, always in the first iteration will return None, try by identing the return None one less tab, like:

def get_infos(name, l):
    for i in l:
        if i[0] == name:
            return i
    return None



I am following a tutorial
when he runs the code it gives  ("Paul', 29, 1.75) but when I run it it gives me None
I tried
# -----Part 2------
# name,age,height
persons = [
    ("Alice", 25, 1.6),
    ("Brian", 35, 1.8),
    ("Paul", 29, 1.75),
    ("Martin", 32, 1.7)
]

def get_infos(name, l):
    for i in l:
        if i[0] == name:
            return i
        return None
    
infos = get_infos("Paul", persons)
print(infos)

and got:
None
but when he runed it he got:
('Paul', 29, 1.75)
