Answers for "random module methods in python"

2

how to call a random function in python

import random

my_list = [func_test_1, func_test_2, func_test_3]
random.choice(my_list)()
Posted by: Guest on July-30-2020
0

import random in python

# Assessment Task 7.2.1
def DisplayOddNum(N):
  pass

for x in DisplayOddNum(20)
  print(x)
Posted by: Guest on November-14-2020

Python Answers by Framework

Browse Popular Code Answers by Language