Why is my Python script printing None after using a function and using input(print())