What will be the output of the following Python code?
random.seed(3) random.randint(1,5) 2 random.seed(3) random.randint(1,5)
random.randrange(0,91,5)
random.randrange(1,100,10)
What will be the output of the following Python function, assuming that the random library has already been included?
random.shuffle[1,2,24]
The function shown above will result in an error because this is the incorrect syntax for the usage of the function shuffle(). The list should be previously declared and then passed to this function to get an output. An example of the correct syntax:
>>> l=['a','b','c','d']
>>> random.shuffle(l)
>>> print(l)