Modules & useful libraries
A module groups reusable Python code. import makes its names available. The standard library includes math, random and datetime. Third-party libraries require installation in a compatible environment.
हिन्दी में समझें
मॉड्यूल दोबारा उपयोग होने वाला कोड है। import से नाम उपलब्ध होते हैं। math, random, datetime मानक लाइब्रेरी में हैं। बाहरी लाइब्रेरी अलग इंस्टॉल होती हैं।
अभ्यास: math.sqrt से 144 का वर्गमूल प्रिंट करें।
Hinglish mein samjhein
Module reusable code ka group hai. import se use karo. math, random aur datetime built-in standard library mein hain. Third-party packages alag install hote hain.
Practice: math.sqrt se 144 ka square root print karo.
A small Python example
import math
print(math.sqrt(81))
print(round(math.pi, 2))The browser playground runs real Python with Pyodide. Use sample variables instead of interactive input(). Browser package support differs from desktop Python.
Try this example in the Python playground →Practise this idea
Use math.sqrt to print the square root of 144.
Check answer & explanation
import math
print(math.sqrt(144))
print(round(math.pi, 2))math.sqrt(144) returns 12.0 because 12 multiplied by itself equals 144.
Stuck in the course? Choose Check answer for either the challenge or quiz. Read the explanation and continue to the next lesson at your own pace.
Check your understanding
What is sqrt(81)?
Check the quiz answer
9.0
The square root is the number that multiplied by itself gives 81.
References & corrections
Use the official Python documentation for full language rules. Read how these lessons are made and checked. Found a mistake? Report it to Excel Keys with this lesson URL and a reproducible example.