Upgrading pip.
KianAlford (6)

I cannot upgrade my pip. I'm trying to install the random package but it tells me to upgrade my pip.
Here is my error:
"Could not find a version that satisfies the requirement Random (from versions: )
No matching distribution found for Random
You are using pip version 9.0.1, however version 19.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command"

You are viewing a single comment. View All
Answered by TheDrone7 (551) [earned 5 cycles]
View Answer
themaka (178)

Ok folks - chill out.

@KianAlford - while you might not have found the answer that @TheDrone7 gave useful, there's no reason to be rude.

Your command on line 12 doesn't look right to me. Did you mean something like this?

player_1 = cards[random.randint(0, 26)]

KianAlford (6)

@themaka sorry. frustrated at this. no. I need it to get 26 variables from the list at random.

themaka (178)

@KianAlford Ah, that's a bit more complicated.

Here's a YouTube video about build card games in Python - https://youtu.be/62TmpPDs0mM - hopefully it can get you moving in the right direction.

KianAlford (6)

@a5rocks thank you very much. It was that easy. that makes me feel insane lol thanks again though

KianAlford (6)

@KianAlford also? How do I make it so that those random selected ones are not used in player 2's set.

a5rocks (513)

@KianAlford um... you could do:

player_1 = random.sample(LIST_HERE, 26)
player_2 = random.sample([item for item in LIST_HERE if item not in player_1], 26)

Btw, yw :D

KianAlford (6)

@a5rocks that worked and ?. I have a lot of things I know but don't know how to put it together thanks m8.

a5rocks (513)

@KianAlford oof. Well, gl with your project

KianAlford (6)

@a5rocks thank you. Here is my email if you could use help. just email me i check my email from 6:30Am to 3:00Pm

[email protected]