You are here: Home / Topics / Python Program to generate a random number between 0 and 9

Python Program to generate a random number between 0 and 9

Filed under: Python on 2023-09-17 22:28:50

# Program to generate a random number between 0 and 9

# importing the random module
import random

print(random.randint(0, 9))

About Author:
S
Shyam Dubey     View Profile
If you are good in any field. Just share your knowledge with others.