1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
tangare [24]
3 years ago
12

A poker hand consists of 5 cards drawn at random without replacement from a 52 card deck. Using python and the cards data frame

you imported, draw a poker hand by sampling from the cards and displaying the resulting sample.
Computers and Technology
1 answer:
PSYCHO15rus [73]3 years ago
5 0

Answer:

# Python program to shuffle a deck of card

# importing modules

import itertools, random

# make a deck of cards

deck = list(itertools.product(range(1,14),['Spade','Heart','Diamond','Club']))

# shuffle the cards

random.shuffle(deck)

# draw five cards

print("You got:")

for i in range(5):

  print(deck[i][0], "of", deck[i][1])

Output

You got:

5 of Heart

1 of Heart

8 of Spade

12 of Spade

4 of Spade

Explanation:

You might be interested in
Do you think children should have their own mobile phones? Why or why not?
Svet_ta [14]

Answer:

Yes

Explanation:

I as a parent think children should have their own mobile phone.

Safety reason being the main reason, because there are too many instances with child abductions, school shootings. It's not like it was 30 years ago when I was a child and we could hang out all over the neighborhood and parents knew each other and watched out for everyone's child. In today's society there is so much danger lurking that you have to protect your child the best way you can, and with our children having mobile phones it allows constant contact with our children. Plain and simple in case of emergencies.

5 0
3 years ago
Read 2 more answers
Where is the Quick Search capability found in Access 2016?
Aleonysh [2.5K]
Data sheet Total options
5 0
3 years ago
cpp g Write a for loop to print all elements in courseGrades, following each element with a space (including the last). Print fo
valentina_108 [34]

Answer:

lol don't ask people to write code for you

assuming its an array, n is size.

normally:

for(int ele: courseGrades){

cout << ele <<" ";

}

cout << endl;

reverse:

reverse(courseGrades, courseGrades + n);

for(int ele: courseGrades){

cout << ele <<" ";

}

cout << endl;

8 0
4 years ago
Which of the following best describes image resolution?
Assoli18 [71]

Answer:

Image resolution describes the number of pixels in an image. Much like how a garden could be 3 feet wide by 4 feet long, images can be 1920 pixels wide and 1080 pixels tall.

8 0
3 years ago
Briefly discuss the aesthetics and ergonomics of a hydraulic jack. First explain what these
ehidna [41]

Answer:

For this model, aesthetics is defined as a measure of how attractive a product appears, and ergonomics is how well a product feels when used/held. ... Two important types of defects, part flash and crush, will be used to define ergonomic and aesthetic PA's, respectively.

5 0
3 years ago
Other questions:
  • Explain the theory of electro-magnetism
    8·1 answer
  • The main thing that adjusting the aperture controls when taking an image is?
    15·1 answer
  • Litmus-type test strips are used to test coolant for freeze protection and ?
    12·1 answer
  • What type of graphic organizer will help jane compare the results of a student survey about teachers at her school?
    15·2 answers
  • As long as users refer to files in the ____ directory, they can access the files without entering the absolute filename.
    10·1 answer
  • Supports traditional transactional processing for day-to-day front-office operations or systems that deal directly with the cust
    11·1 answer
  • Your mother wants to purchase a large hard drive for her computer and asks you to see what type of drive interface she has. Her
    13·1 answer
  • What is one example of how teens use the internet and social media for cyberbullying
    12·2 answers
  • 1. What have you understood about the do's and don'ts inside the computer lab?
    15·1 answer
  • A software program that allows you to create professional looking multimedia presentations. Question 1 options: Excel 365 Word 3
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!