Question: Create a code with Python that meets the requirements: Requirements: Write a function name randintlist which takes three parameters: 5 points 1. minimum 2. maximum
Create a code with Python that meets the requirements:

Requirements: Write a function name randintlist which takes three parameters: 5 points 1. minimum 2. maximum 3. length 45 points 10 points The randintlist function should return a list of random int values (us- ing random.randint) where the minimum and maximum values of those random numbers are the argument values for the first two parameters, and the length of the list (count of random) is given by the argument value of the third parameter. For the list of random int values returned by randintlist no two values should be equal (e.g., [1, 2, 1] is not valid, but [4, 1, 2] is valid). Prompt the user whether they want to play a guessing game of easy, medium, or hard difficulty. Repeatedly re-prompt the user until their re- sponse is one of: easy medium hard Using your randintlist function, generate a list of random int values between 1 and 10 (inclusive of both 1 and 10 whose length is: 10 points 10 points 1. 5, if user responded they wanted an easy game 2. 3, medium game 3. 1, hard game 10 point Prompt the user to guess a number between 1 and 10. Repeatedly re- prompt the user if their response is not between 1 and 10 (don't worry about user responses that are not valid int values) If the user's response (guess) is one of the values in the generated list of values (from randintlist function, then print "You won" and if the user's response (guess) is not one of the values print "You lost" (capitalization matters in your output) 10 points
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
