Count the number of print
statements in your code. You'll see that you're printing "hello alice!!!"
in the hello
function, and printing the result of the hello
function. Because the hello
function doesn't return a value (which you'd do with the return
statement), it ends up returning the object None
. Your print
inside the main
function ends up printing None
.