Need help for personal project - Python 3 development

Hello, I am new to programming and this site, but I’ve come across a slight issue with some code I have written in python and I don’t understand why this is failing or how to fix this?

Is this the correct thread for this? If so, I will share the code and what I am looking to do.