Jak utworzyć liczbę losową od 1 do 10 w Pythonie
smallest = 0
largest = 100
random_number = random.randint(smallest, largest - 1)
Helpful Hare
smallest = 0
largest = 100
random_number = random.randint(smallest, largest - 1)
import random
n = random.randint(0,22)
print(n)
# Output: 2