Skip to content
Question 90 of 97

Q.Name the Python Library modules which need to be imported to invoke the following functions:

(i) sqrt()
(ii) start()
Tripura TbseCBSE Class XII Board 2019Subjective· 1mImportance★★★★★
93% · 90/97 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

Python's sqrt() lives in the math module, while start() belongs to the turtle module for graphics control.

Understanding Python's module system

Python organizes its vast collection of functions into modules — libraries that group related functionality together. You cannot call a function like sqrt() or start() directly; you must first import the module that contains it. This keeps the global namespace clean and makes code more readable.

The question asks which modules house two specific functions. Let's trace each one.


Identifying the required modules

1. The sqrt() function

The square root function is a mathematical operation, so Python places it in the math module. This module contains all standard mathematical functions — trigonometry, logarithms, constants like pi (π), and of course square roots.

To use it:

import math
result = math.sqrt(25)  # returns 5.0

Alternatively, you can import just the function:

from math import sqrt
result = sqrt(25)
Note

There's also numpy.sqrt() for array operations and cmath.sqrt() for complex numbers, but in a basic Python context, math.sqrt() is the standard answer.

2. The start() function …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.