I’m just starting to learn python in general, from the free “How to think like a computer scientist” book. I have a question: Why does it work when I do this:

```
given = int(raw_input("Type a number. "))
def numberchecker(n):
if n >= 10:
print n
else:
n=10
numberchecker(n)
numberchecker(given)
```

{that is, it takes the inputted number and spits it back out unless it’s smaller than 10, in which case it spits back 10}

but then this other way prints “none” for inputted numbers less than 10 {but works for numbers greater than 10}

```
given = int(raw_input("Type a number. "))
def numberchecker(n):
if n == 10:
return n
else:
n=10
numberchecker(n)
print numberchecker(given)
```

Anybody know? I haven’t been able to figure out why it doesn’t work–is it a dumb mistake, an eccentricity of python, or something fundamentally wrong with what I’m doing?