I need some help creating a word game in Python

It’s supposed to work like this: