Teachnique
      CourseRoadmaps
      Login

      OverviewCommentsUser InputNumbersBooleansHistoryHello World ProgramEnvironment SetupSyntaxVariablesData TypesType CastingUnicode SystemLiteralsOperators

      Control FlowBreak StatementContinue StatementPass StatementNested LoopsDecision MakingIf StatementIf-else StatementNested IF StatementMatch-Case StatementLoopsFor LoopsFor-else LoopsWhile Loops

      FunctionsBuilt-in FunctionsDefault ArgumentsKeyword ArgumentsKeyword-Only ArgumentsPositional ArgumentsPositional-Only ArgumentsArbitrary ArgumentsVariable ScopeFunction AnnotationsModules

      StringSlicing StringsModify StringsString ConcatenationString FormattingEscape CharactersString MethodsString Exercises

      ListsList ExercisesAccess List ItemsChange List ItemsAdd List ItemsRemove List ItemsLoop ListsList ComprehensionSort ListsCopy ListsJoin ListsList Methods

      TuplesAccess Tuple ItemsUpdate TuplesUnpack Tuple ItemsLoop TuplesJoin TuplesTuple MethodsTuple Exercises

      SetsAccess Set ItemsAdd Set ItemsRemove Set ItemsLoop SetsJoin SetsCopy SetsSet OperatorsSet MethodsSet Exercises

      DictionariesDictionary ExercisesAccess Dictionary ItemsChange Dictionary ItemsAdd Dictionary ItemsRemove Dictionary ItemsDictionary View ObjectsLoop DictionariesCopy DictionariesNested DictionariesDictionary Methods

      ArraysAccess Array ItemsAdd Array ItemsRemove Array ItemsLoop ArraysCopy ArraysReverse ArraysSort ArraysJoin ArraysArray MethodsArray Exercises

      File HandlingWrite to FileRead FilesRenaming and Deleting FilesDirectoriesFile Methods

      OOP ConceptsDynamic BindingDynamic TypingAbstractionObject and ClassesEncapsulationInterfacesPackagesInner ClassesAnonymous Class and ObjectsSingleton ClassWrapper ClassesEnumsReflectionClass AttributesClass MethodsStatic MethodsConstructorsAccess ModifiersInheritancePolymorphismMethod OverridingMethod Overloading

      Feedback

      Submit request if you have any questions.

      Course
      Built-in Functions

      Python Tutorial

      This Python tutorial has been written for the beginners to help them understand the basic to advanced concepts of Python Programming Language. After completing this tutorial, you will find yourself at a great level of expertise in Python, from where you can take yourself to the next levels to become a world class Software Engineer.

      Built-in Functions

      As of Python 3.11.2 version, there are 71 built-in functions in Pyhthon. The list of built-in functions is given below −
      Sr.No.
      Function & Description
      1
      AI
      Returns absolute value of a number
      2
      AI
      Returns an asynchronous iterator for an asynchronous iterable
      3
      AI
      Returns true when all elements in iterable is true
      4
      AI
      Returns the next item from the given asynchronous iterator
      5
      AI
      Checks if any Element of an Iterable is True
      6
      AI
      Returns String Containing Printable Representation
      7
      AI
      Converts integer to binary string
      8
      AI
      Converts a Value to Boolean
      9
      AI
      This function drops you into the debugger at the call site and calls sys.breakpointhook()
      10
      AI
      returns array of given byte size
      11
      AI
      returns immutable bytes object
      12
      AI
      Checks if the Object is Callable
      13
      AI
      Returns a Character (a string) from an Integer
      14
      AI
      Returns class method for given function
      15
      AI
      Returns a code object
      16
      AI
      Creates a Complex Number
      17
      AI
      Deletes Attribute From the Object
      18
      AI
      Creates a Dictionary
      19
      AI
      Tries to Return Attributes of Object
      20
      AI
      Returns a Tuple of Quotient and Remainder
      21
      AI
      Returns an Enumerate Object
      22
      AI
      Runs Code Within Program
      23
      AI
      Executes Dynamically Created Program
      24
      AI
      Constructs iterator from elements which are true
      25
      AI
      Returns floating point number from number, string
      26
      AI
      Returns formatted representation of a value
      27
      AI
      Returns immutable frozenset object
      28
      AI
      Returns value of named attribute of an object
      29
      AI
      Returns dictionary of current global symbol table
      30
      AI
      Returns whether object has named attribute
      31
      AI
      Returns hash value of an object
      32
      AI
      Invokes the built-in Help System
      33
      AI
      Converts to Integer to Hexadecimal
      34
      AI
      Returns Identify of an Object
      35
      AI
      Reads and returns a line of string
      36
      AI
      Returns integer from a number or string
      37
      AI
      Checks if a Object is an Instance of Class
      38
      AI
      Checks if a Class is Subclass of another Class
      39
      AI
      Returns an iterator
      40
      AI
      Returns Length of an Object
      41
      AI
      Creates a list in Python
      42
      AI
      Returns dictionary of a current local symbol table
      43
      AI
      Applies Function and Returns a List
      44
      AI
      Returns the largest item
      45
      AI
      Returns memory view of an argument
      46
      AI
      Returns the smallest value
      47
      AI
      Retrieves next item from the iterator
      48
      AI
      Creates a featureless object
      49
      AI
      Returns the octal representation of an integer
      50
      AI
      Returns a file object
      51
      AI
      Returns an integer of the Unicode character
      52
      AI
      Returns the power of a number
      53
      AI
      Prints the Given Object
      54
      AI
      Returns the property attribute
      55
      AI
      Returns a sequence of integers
      56
      AI
      Returns a printable representation of the object
      57
      AI
      Returns the reversed iterator of a sequence
      58
      AI
      Rounds a number to specified decimals
      59
      AI
      Constructs and returns a set
      60
      AI
      Sets the value of an attribute of an object
      61
      AI
      Returns a slice object
      62
      AI
      Returns a sorted list from the given iterable
      63
      AI
      Transforms a method into a static method
      64
      AI
      Returns the string version of the object
      65
      AI
      Adds items of an Iterable
      66
      AI
      Returns a proxy object of the base class
      67
      AI
      Returns a tuple
      68
      AI
      Returns the type of the object
      69
      AI
      Returns the __dict__ attribute
      70
      AI
      Returns an iterator of tuples
      71
      AI
      Function called by the import statement

      Built-in Mathematical Functions

      Following mathematical functions are built into the Python interpreter, hence you don't need to import them from any module.
      Sr.No.
      Function & Description
      1
      AI
      The abs() function returns the absolute value of x, i.e. the positive distance between x and zero.
      2
      AI
      The max() function returns the largest of its arguments or largest number from the iterable (list or tuple).
      3
      AI
      The function min() returns the smallest of its arguments i.e. the value closest to negative infinity, or smallest number from the iterable (list or tuple)
      4
      AI
      The pow() function returns x raised to y. It is equivalent to x**y. The function has third optional argument mod. If given, it returns (x**y) % mod value
      5
      AI
      round() is a built-in function in Python. It returns x rounded to n digits from the decimal point.
      6
      AI
      The sum() function returns the sum of all numeric items in any iterable (list or tuple). An optional start argument is 0 by default. If given, the numbers in the list are added to start value.

      Practice with Online Editor

      Note: This Python online Editor is a Python interpreter written in Rust, RustPython may not fully support all Python standard libraries and third-party libraries yet.
      Remember to save code(Ctrl + S Or Command + S) before run it.