Skip to main content
Brave Programmer Logo

BraveProgrammer

BraveProgrammer

HomeProjectsBlogsCoursesLessonsAbout

Site footer

BraveProgrammer

Free coding courses, practical tutorials, and real projects from BraveProgrammer. Learn web development with React, Next.js, and TypeScript.

Navigation

  • Home
  • Projects
  • Blogs
  • Courses

Resources

  • About
  • Lessons

© 2026 BraveProgrammer. All rights reserved.

  1. Courses
  2. /
  3. Python Fundamentals

Lesson 22 of 55 · Python

Importing Standard Library

Duration: 20 minutes

Importing Standard Library\n\nPython ships with a rich standard library that offers modules for OS interaction, mathematics, networking, and more—no extra installation required.\n\npython\nimport os\nimport sys\nimport math\n\nprint('Current working directory:', os.getcwd())\nprint('Python version:', sys.version)\nprint('Square root of 16:', math.sqrt(16))\n\n\nExplore the full library at https://docs.python.org/3/library/.\n

Previous: Modules and PackagesNext: Working with JSON