Generate a random number

 import random

random_number = random.randint(1, 10)

print("The random number is", random_number)


Comments

Popular posts from this blog

Hello World Python Code with Explanation

Addition of Two numbers in Python

Iris Flowers Classification ML Project with Code