python how to get a random number code example
Example 1: random number pythn
import random
n = random.randint(0,22)
print(n)
# Output: 2
Example 2: python random number
# Random number game
from random import randint
print(randint(1,11))
~~ prints answers from 1 to 10 ~~