Suppose you design an educational game to teach children how

Suppose you design an educational game to teach children how to read a clock. How do you generate random values for the hours and minutes? Prefer Python.

Solution

Use the concept like below :
If you want to store those values in rand_hours and rand_min then use package random of python and apply randint() function in it

import random
rand_hours=random.randint(0,23)
rand_min=random.randint(0,59)

Suppose you design an educational game to teach children how to read a clock. How do you generate random values for the hours and minutes? Prefer Python.Solutio

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site