Feb-27-2021, 08:28 AM
Just use interactive interpreter:
+>>> import random +>>> help(random.choice) Help on method choice in module random: choice(seq) method of random.Random instance Choose a random element from a non-empty sequence. +>>> random.choice(range(5)) 1 +>>> random.choice(range(5), range(6,9), range(7,10)) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: choice() takes 2 positional arguments but 4 were givenIn your original code row #30 you had
true
which should cause error.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.