Q:

Generate 3 random integers between 100 and 999 which is divisible by 5 using python programming

0

Generate 3 random integers between 100 and 999 which is divisible by 5

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Solution:

import random

print("Generating 3 random integer number between 100 and 999 divisible by 5")
for num in range(3):
    print(random.randrange(100, 999, 5), end=', ')

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now