The program uses the random module in Python to generate 10 random even numbers between 2 and 100 (inclusive).
So, each time the loop runs, it generates a new random even number between 2 and 100 (inclusive) and prints it to the console.
import random for x in range(10): res = random.randrange(2, 100, 2) print(res)
90 4 40 30 78 20 36 62 16 72
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions