What does random.randint(1, 6) return in Python?
Correct answer
C. An integer from 1 to 6 inclusive
5 views
C. An integer from 1 to 6 inclusive
5 views
randint includes both endpoints.
Asked in: Python Interview Advanced Python
https://docs.python.org/3/library/index.htmlNot sure why the answer is C? Ask here and get an explanation.