roll @pie

Python built-in functions

Python has built-in functions as follows:

enumerate()

0
14 Views
0 Comments

Comments

Powered by Markdown

More

  • roll @pie

    Python enumerate() and loop - How to iterate the list, tuple, dictionary using the enumerate()

    The `enumerate()` returns an enumerate object in which you can iterate and get the pair of the index and element. python a = ['com', 'org',...

    0
    16 Views
    0 Comments
  • roll @pie

    Python range and arguments (start, stop, and step)

    You can get consecutive integers by the `range()`, a Python built-in function. python r = range(4) for n in r: print(n) # 0 # 1...

    0
    58 Views
    0 Comments
  • roll @pie

    Python type and isinstance - Get the type of an object and check if the object is list

    `type` is a Python built-in function that returns type of object. python a = 1 b = 'Microsoft' c = [3, 4] d = {'book': 27, 'pen': 91} e...

    0
    0 Views
    0 Comments
  • roll @pie

    Python id- When x is 3, x and 3 have the same id

    Python `id` is the identity of an object. We can get an object id by `id` built-in function. python a = 3 b = a i = id(a) j = id(b) ...

    0
    2 Views
    0 Comments
Python

Python String

30

Python List

27

Python Tuple

11

Python Set

12

Python Dictionary

18

Python Float

7

Python Decimal

4

Python Fraction

2

Python Date & Time

7

Python Function

4

Python Class

14

Python File

12

Python Built in

5

Python Math

12

Python Counter

3

Python Functools

2

Python Itertools

5

Python Deque

4

Python Tips

17
Legends
Terms Privacy

© Rollpie