Noob programmer here,
I made a simple randomizer in Python that gives 2 answers, sometimes the answers are the same. How do I prevent this?
Little rundown of the code:
import random Names = [ âJakeâ , âJohnâ , âDavidâ ] Namesoutcome = random.choices(Names, k=2)
[âJakeâ , âJakeâ]
I need 2 different answers, plz help!
wpercy answered question
Have an answer?