English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

What is the purpose of the sys, os, getopt module in Python? Explain.

Advertisements
Advertisements

Question

What is the purpose of the sys, os, getopt module in Python? Explain.

Answer in Brief
Advertisements

Solution

Python’s sys module:

This module provides access to some variables used by the interpreter and to functions that interact strongly with the interpreter.

Python’s OS module:

  • The OS module in Python provides a way of using operating system-dependent functionality.
  • The functions that the OS module allows you to interface with the Windows operating system where Python is running on.

Python getopt module:

  • The getopt module of Python helps us to parse (split) command-line options and arguments.
  • This module provides two functions to enable command-line argument parsing.
shaalaa.com
Python Program to Import C++
  Is there an error in this question or solution?
Chapter 14: Importing C++ programs in Python - Evaluation [Page 290]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 12 TN Board
Chapter 14 Importing C++ programs in Python
Evaluation | Q 3. | Page 290
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×