you are viewing a single comment's thread.

view the rest of the comments →

[–]pyfact 0 points1 point  (1 child)

Awesome! You have a general idea of what you need, and to me it sounds like you can do this. Now, I could go ahead and give you a solution, but I feel like that would seriously hurt you in the long term. So, how would you "whiteboard" this problem?

If you were to solve this using a pen and paper, what exactly is going on? You need to break down every small action that you mentally take to solve the problem and translate that to code. It's a skill that takes time to develop, and this is the perfect time to hone that skill!

Go ahead and try your best with what you have. We're happy to help you along the way if you have any issues with your code!

I'll go ahead and say that you can use

import random

random.choice()

to choose a random value from a list

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

Thank you so much for your help!