python classes and functions question

if i have this code:

i can't run it like this:

how can i change my function and classes so that i can run it like that? Thanks!

You are viewing a single comment. View All

I realized i wasn't describing what i wanted correctly in the post. I updated it. Can you look again? Thanks! @Coder100