Member-only story

Interview question: Name a few of Python’s inbuilt functions

Crystal X
9 min readFeb 22, 2023

--

Python has more or less 68 inbuilt functions, and it is worth knowing the uses of these functions in order to excel in program development. Knowledge of these inbuilt functions will come in handy, so I have decided to make a list of them and include sample code to reveal how they can be used in the programming environment.:-

__import__( )

_import_() is an advanced function which is invoked when we use the import statement.

abs( )

Abs() returns the absolute value of a number. If the argument is a complex number, its magnitude is returned.

all( )

All() returns True if all elements of the iterable are true or if the iterable is empty.

any(iterable)

Any() returns True if any element of the iterable is true.

ascii( )

--

--

Crystal X
Crystal X

Written by Crystal X

I have over five decades experience in the world of work, being in fast food, the military, business, non-profits, and the healthcare sector.

No responses yet