Assignment 1 code runs in repl.it but fails in github

I’ve been trying to get this to pass for days and I don’t know where to go from here. Can anyone let me know if they can see what I’m missing?

If anyone is needing additional assistance, I was able to get some questions and guidance through the topic: Assignment 1 failing tests