denise
0
Q:

import random in python

# generate random integer values
from random import randint

value = randint(0, 10)
print(value)
35
# imports random
import random
# randint generates a random integar between the first parameter and the second
print(random.randint(1, 100))
34
# imports random
import random
# randint generates a random integar between the first parameter and the second
print(random.randint(1, 100))
# random generates a random real number in the interval [0, 1)
print(random.random())
19
import random
5
# Assessment Task 7.2.1
def DisplayOddNum(N):
  pass

for x in DisplayOddNum(20)
  print(x)
-1

New to Communities?

Join the community