×


Category: WordPress


Python input() Function in Linux

This article covers how to use the input() function in Python. In fact, The input() function in Python makes it very easy to get input from users of your application. The input function is built in just like the print function and its use is quite common. When you call the input function(), you can think of it as an expression that evaluates to whatever the user typed in at the prompt. This always gets returned as a string so if you want to use numbers as input, you will need to handle that by using the int() function.


Python bool() Function in Linux

This article covers how to use the bool() function in Python. In fact, The bool() method is a built-in Python method that applies the standard truth testing procedure to the passed object/value and returns a boolean value. Moreover, the bool class cannot be sub-classed. Its only instances are False and True.


Install Python 3.10 on Rocky 8 - A step by step process ?

This article covers the process of installing Python 3.10 on Rocky Linux 8. In fact, Python is one of the most popular high-level languages, focusing on high-level and object-oriented applications from simple scrips to complex machine learning algorithms.



Python any() Function in Linux

This article covers how to use any() function in Python. In fact, The any() function returns True if any item in an iterable are true, otherwise it returns False. If the iterable object is empty, the any() function will return False.


Python sorted() Function

This article covers how to use the sorted() function in Python through examples. In fact, The sorted() function returns a sorted list of the specified iterable object. You can specify ascending or descending order. Strings are sorted alphabetically, and numbers are sorted numerically.


Parameters for python sorted function Syntax is given below:

Sorted(iterable, key, reverse)


Is a Python dictionary sorted?

Yes, a dictionary(collection of items in which the items are stored as key-value pairs) in Python can be sorted based on the order of item insertion. But, it was not possible in the earlier versions. 


Python super() Function

This article covers how to use the super() function in Python. The super() builtin returns a proxy object (temporary object of the superclass) that allows us to access methods of the base class.