Why does this not run in python shell?

You need to call the function.

What like say hangman (cat)?

Yup.

hangman("test")
1 Like

Awww done it. Thank you mate

1 Like

In the future, it is a lot easier for us to help if you copy-paste your code instead of a screenshot

Thanks.