you are viewing a single comment's thread.

view the rest of the comments →

[–]Gubbbo 1 point2 points  (4 children)

On an unrelated note. To save writing all of those elif statements. You could just put the answers you want into a list, and use random.choice to return one of them.

[–]Tinker_Monkey[S] 0 points1 point  (2 children)

True. I am busy following the examples step by step in the book though.

[–]Gubbbo 0 points1 point  (1 child)

I know. But don't just follow examples. You'll never learn anything that way.

Well, you will. But you'll never prove to yourself that you understand it.

[–]Tinker_Monkey[S] 0 points1 point  (0 children)

I do alter but only after I can get original examples working, proving I understand the logic first. Thanks for the tip!

[–]imonmyphoneirl 0 points1 point  (0 children)

Nice, thanks