How to create a randomizer in python?

So I started getting back to python and I wanted to make a hangman game and what I want is for the computer to choose from bunch of words that I previously choose to be in the game and for the computer to just choose from the random words I put. Any modules or anything will help, thanks!

To choose one word from a list, I recommend using random module.

import random #importing module
a = [1, 2, 3] #your list of words
print(random.choice(a)) #prints random item from the list a

Here are the docs:

https://docs.python.org/3/library/random.html