Question: Using Python create a While loop that iterates 10 times. On each iteration, you should generate and then print random number from 1-10 using random.randint(1,

Using Python create a While loop that iterates 10 times. On each iteration, you should generate and then print random number from 1-10 using random.randint(1, 10). Make sure you print a total of 10 numbers. The number printed on any iteration should not be the same as the most recently printed number. If you randomly generate a duplicate, use the 'continue' keyword to avoid printing that number. Example Output: 2 4 6 4 6 3 7 9 3 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
