Answers for "hello world in python using random generator"

10

python function to print random number

import random
n = random.randint(0,22)
print(n)
Posted by: Guest on June-03-2020
1

random number python

import random
num = random.randint(1, 10) # put any number
print(num)
Posted by: Guest on November-30-2020

Python Answers by Framework

Browse Popular Code Answers by Language