Code

Write a code that conduct following actions:1. Define a function that returns an integer between 1 and 10.2. Call the defined function to get the random integer.3. Continue drawing a random integer until you get a number that is larger than or equal to 8.4. Display how many draws did it take before you stopped.You should import random module.

Click here to order similar paper @Udessaywriters.com.100% Original.Written from scratch by professional writers.

You May Also Like

About the Author: admin