Python’s bool() function converts a given value into Boolean(True or False) using the standard truth…
Category: Built-In Methods
Python abs()
The abs() function in Python returns the absolute value of a given number, which means…
Python callable()
The callable() function in Python returns True if the object passed appears to be callable.…
Python bin()
The bin() is a built-in function in Python that takes an integer and returns the…
Python ascii()
The ascii() in Python is a built-in function that returns a printable and readable version…
Python all()
The all() function in Python returns True if all the element of an iterable(List, set, dictionary, tuple) is True. If not, it…
Python slice()
The slice() in Python is a built-in function that returns a slice object and slices…
Python bytes()
Python bytes() function return an immutable byte-represented object of given size and data. The bytes()…
Python any()
The any() function in Python returns True if any element of an iterable(List, set, dictionary,…
Python bytearray()
Python bytearray() function returns a bytearray object that means it converts an object into bytearray…
XOR in Python
XOR Operator in Python is also known as “exclusive or” that compares two binary numbers bitwise if…
Python chr(): A Step-By-Step Guide
The chr() function takes an integer (representing Unicode) as an input argument and returns a…