Which import lets you call randint() directly without the module name?

  1. include random
  2. from random import randint
  3. import randint from random
  4. import random
Answer

B) from random import randint

from module import name brings the name into the program. SLO CS-11-C-04

Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise