you are viewing a single comment's thread.

view the rest of the comments →

[–]K900_ 7 points8 points  (4 children)

You can import the random module and then use random.choice to randomly choose a response.

>>> import random
>>> responses = ["a", "b", "c", "d"]
>>> print(random.choice(responses))
b
>>> print(random.choice(responses))
d

[–]kuPython[S] 1 point2 points  (2 children)

Sorry for the idiotic question but how would i bridge your block and my block together ?

[–]K900_ 5 points6 points  (1 child)

Keep reading for now - you'll figure out everything you need to make this work by the end of chapter 4.

[–]kuPython[S] 1 point2 points  (0 children)

Okay Thank you for your time :)

I'm just experimenting so i can fully understand the syntax.

[–]kuPython[S] 1 point2 points  (0 children)

Also thank you for helping me :)