Write Python code that prompts the user to guess Heads or Tails. Your code will continue to display the results and prompt the u
ser again until the user enters 0. Hint: Use the same code to get user input as you did in previous lessons. You may want to import and use random function.
For the best-case: Because there is a chance that you take two gloves of the same color in the first two round the answer is two.
For the worst-case: The worst case would be if, for each color-group of gloves you take the right or left glove, for example, you take 5 left-hand red gloves then 4 left-hand yellow gloves, then 2 left-hand green gloves, because you have already taken all of the left gloves the next one is going to be a right glove that is going to pair with one of the already selected gloves, therefore, the answer is 12 -> 5+4+2+1 = 12
Some hardware requirement: Monitor, keyboard, mouse, sound card, memory, processor, graphics display card. Some software requirement: Windows XP/Vista, Video for Windows, Quicktime.