PrepAway - Latest Free Exam Questions & Answers

Which two functions should you use? Each correct answer presents a complete solution. (Choose two.)

You are writing code that generates a random integer with a minimum value of 5 and a maximum value of 11.

Which two functions should you use? Each correct answer presents a complete solution. (Choose two.)

A. random.randint(5, 12)

B. random.randint(5, 11)

C. random.randrange(5, 12, 1)

D. random.randrange(5, 11, 1)

References: https://docs.python.org/3/library/random.html#


Leave a Reply