Others - Python

  • Installation
  • Theory
    • Source code > interpreter > Output => Interactive mode & Script mode
    • If Identical value are created for different Variables before running the code then both will point at same address
    • Library > Package > Module > Functions
    • sorted(sequence, parameter = value) => Returns the sorted sequence about the value given stored in parameter
  • Library
    • from package import module => Library > Package > Module > Functions
    • import package.module as var => Import module from a package as a variable
    • library.function() => If you import library only
    • help(library) => Give details of library written in docstring
  • Exception Handling
        try:
            statement
        except Exception as variable:
            statement
    
Share: