Mar-31-2020, 10:27 PM
print() returns None, so p_ask = print() doesn't do anything useful
x = print('Hi') print(x)
Output:None
Your use of random.choices was correct until you joined all the ask elements into a string.import random ask = ('Is', 'Do', 'Does', 'Are') print(random.choices(ask, k=2))
Output:['Do', 'Are']
My guess though is that you didn't want a list of choices, but a single choice:import random ask = ('Is', 'Do', 'Does', 'Are') print(random.choice(ask))
Output:Does