1.

To include the use of functions which are present in the random library, we must use the option:(a) import random(b) random.h(c) import.random(d) random.randomI had been asked this question in an interview for job.My question is taken from Random module topic in division Mapping Functions and Modules of Python

Answer» CORRECT option is (a) import RANDOM

The best I can explain: The COMMAND import random is used to import the random MODULE, which enables us to use the functions which are present in the random library.


Discussion

No Comment Found

Related InterviewSolutions