Write a program to print 5 even random numbers between 10 and 100
Topic: Write a program to print 5 even random numbers between 10 and 100
Solution
import random print(random.sample([i for i in range(10, 100) if i%2 == 0], 5))
List all Python Programs