Just to add to what @Terafy already said - loop is a function, but it does not return anything, just prints inside a loop body. So you don't want to print it (on line 105) but just call the loop. Otherwise your print statement will print
None