The dictionary is a data type in Python that is used to store data in the form of key/value pairs. We have written a detailed tutorial about Continue Reading

# Python Tutorials

The sin() function: Takes an argument (x = number) and returns its sine in radians. It’s the part of math module, so this function cannot be used Continue Reading

The all() function: Takes an argument (which is iterable) and returns True if all the elements of the iterable are True. If the given iterable is empty, Continue Reading

The ascii() function: Takes an argument (object) that can be a string, list, tuple etc. It returns a string that contains a printable representation of that object. Continue Reading

The any() function in Python returns True if any elements of the iterable are True. The any() function takes an argument which is the iterable e.g. a Continue Reading

Python has a basic way for formatting strings just like in other programming languages. The ‘%’ or modulus operator (percentage sign) is generally supported in many languages Continue Reading

In Math, the exponent is referred to the number of times a number is multiplied by itself. For example, 4^3 In this case, the exponent will be Continue Reading

The floor function is the part of math module that returns the floor of a given number (x) which is the largest integer number less than or Continue Reading

In Python and generally speaking, the modulo (or modulus) is referred to the remainder from the division of the first argument to the second. The symbol used Continue Reading

Before version 2.6 of Python, you had to calculate the factorial by writing your own function/code. From version 2.6 and above, the factorial can be calculated by Continue Reading

The abs() function returns the absolute value of the given number in Python. The abs() function takes an argument which is the number that you want to Continue Reading

The timedelta is a class in datetime module that represents duration. The delta means average of difference and so the duration expresses the difference between two date, Continue Reading

The strftime() function belongs to datetime and time() modules in Python. As the name suggests ("str" "f" "time"), Python strftime() function returns the string representation of the Continue Reading

In Python, you may convert a date to string that is in an easily readable format to the users in different ways. Being able to format date by Continue Reading

In this tutorial, you are going to learn how to get the current date and time by now() function of Python datetime() module. Later, you can also Continue Reading