Skip to content

Tag Archives: Python-Built-in-functions

Prerequisite : Introduction to Statistical FunctionsPython is a very popular language when it comes to data analysis and statistics. Luckily, Python3 provide statistics module, which… Read More
Python time sleep() function suspends execution for the given number of seconds.  Sometimes, there is a need to halt the flow of the program so… Read More
degrees() and radians() are methods specified in math module in Python 3 and Python 2. Often one is in need to handle mathematical computation of conversion… Read More
dir() is a powerful inbuilt function in Python3, which returns list of the attributes and methods of any object (say functions , modules, strings, lists,… Read More
expandtabs is a method specified in Strings in Python 3. Sometimes, there is a need of specifying the space in the string, but the amount… Read More
decode() is a method specified in Strings in Python 2. This method is used to convert from one encoding scheme, in which argument string is… Read More
In today’s world, security holds the key in many applications. Thus the need for secure storage of passwords in the database is required and hence… Read More
fabs() is a method specified in math library in Python 2 and Python 3. Sometimes while computing the difference between 2 numbers to compute the… Read More
uniform() is a method specified in the random library in Python 3. Nowadays, in general, day-day tasks, there’s always the need to generate random numbers… Read More
Python oct() function takes an integer and returns the octal representation in a string format. Python oct() Function Syntax Syntax : oct(x) Parameters : x… Read More
Python library defines a function that can be primarily used to get current time and date. now() function Return the current local date and time,… Read More
Python format() function has been introduced for handling complex string formatting more efficiently.  Python3 txt = "I have {an:.2f} Ruppes!" print(txt.format(an = 4)) Output: I… Read More
hex() function is one of the built-in functions in Python3, which is used to convert an integer number into it’s corresponding hexadecimal form. Syntax : … Read More
randint() is an inbuilt function of the random module in Python3. The random module gives access to various useful functions and one of them being… Read More
atan2(y, x) returns value of atan(y/x) in radians. The atan2() method returns a numeric value between – and representing the angle of a (x, y)… Read More

Start Your Coding Journey Now!