It's very simple, just put random.choice()
import random
foo = ['q', 'w', 'e', 'r', 't']
print(random.choice(foo))
If you want to use cryptographically secure random choices then use either random.SystemRandom class or secrets.choice() :
import random
foo = ['q', 'w', 'e', 'r']
secure_random = random.SystemRandom()
print(secure_random.choice(foo))
import secrets
foo = ['q', 'w', 'e', 'r', 't']
print(secrets.choice(foo))