Tutorials on Linux, Programming & Technology

Python range() Function _ Explained

Python Range With Steps

In Python, the “range()” function creates the sequence of numbers by specifying the upper and lower limit with the addition of step size value.

Convert List Into Tuple

Python | Convert List Into Tuple

To convert the list into a tuple, the “tuple()” function, “for loop”, and “unpacking list operator (*List, ) ” with a single comma are used.

Python Empty Tuple

Python Empty Tuple | Explained

To create an empty tuple, the “tuple()” function and empty parentheses are used in Python. For instance, “()” represents an empty tuple.

Python List Reverse() Function _ Explained

Python List reverse() Method | Explained

To reverse the list element, the “reverse()” method is used in Python. The “reversed()” function also accepts the list and returns the reversed iterable object.

Python while Loop _ Explained

Python While Loop | Explained

“while” loop executes the block of code until the condition remains “True”. It iterates infinite times if the increment/decrement value is not defined.

Python | Convert Hex to Decimal

Python | Convert Hex to Decimal

In Python, the hexadecimal to decimal conversion is carried out using the inbuilt “int()” function, “literal_eval()”, “while” loop, and “dictionary”.

Linux ifconfig Command Explained

Linux | ifconfig Command Examples

In Linux, the purpose of the ifconfig command is to configure the network interfaces, specifically those associated with Kernel modules

What is Uname Command in Linux

What is Uname Command in Linux

The uname command is used in Linux to display the basic information of the computer, including kernel name, hostname, kernel version, and processor type.

How to Convert Float to Int in Python

How to Convert Float to Int in Python?

To convert float to int, the inbuilt functions such as “int()”, “math.floor()”, “math.ceil()”, “round()”, and “math.trunc()” are used in Python.

How to Count Files in Directory in Linux

How to Count files in Directory of Linux?

To count files in directory, use the “ls [path] | wc -l”, “find [path] | -type f | wc -l”, “tree [path]”, and “rsync –stat –dry-run -a [path]” commands.

How to Set or Change Hostname in Linux

How to Set or Change Hostname in Linux

To set or change the hostname in Linux, use the command “sudo hostnamectl set-hostname [name]” or by changing the computer name in Sharing of Settings.

Python Convert Dictionary Keys to List

Python | Convert Dictionary Keys to List

The “dict.keys()”, “List Comprehension”, “for loop with append()”, “Unpacking with *” and “itemgetter()“are used to convert dictionary keys to lists.

Python str() Function Examples

Python str() Function | Examples

The “str()” function is used to return any input data type as a string. Data types, such as list, dict, etc., can be converted into a string using this function.

Python Access Tuple Explained

Python Access Tuple | Explained

In Python, the index number is used to access the items of a Python tuple. The items of tuples are accessed individually and in the form of ranges.

How to Install Linux Mint 21 From USB

How to Install Linux Mint 21 From USB?

To install Linux Mint 21 from USB, first, download the iso file of Linux Mint 21, make the USB bootable with the downloaded iso file, and finally install it on the computer.

Is Ubuntu Debain Based

Is Ubuntu Debian Based?

If you are wondering whether Ubuntu is Debian based or looking for the key similarities and differences between them. Then read this article for more details.

Python Set add() Explained

set.add() Function in Python

Python provides a built-in function named “set.add()” that adds a new element to a set. The set.add() function accepts exactly one argument.

Fibonacci Series in Python Using For Loop

Fibonacci Series in Python Using For Loop

The “Fibonacci series” is created using the “for loop” iteration of any user-defined range. The Fibonacci series is generated by adding the previous two numbers.

Python Pillow Tutorial

Python Pillow Tutorial

In Python, the pillow module is used for multiples operation on digital images like cropping, filtering, drawing and enhancing, etc

How to get Python String Length

How to Get Python String Length?

To get the length of a Python string, a built-in function named “len()” or a user-defined function with “for loop” or “if-else” statements is used.

How to check Services running in linux

How to Check Services Running in Linux

Run the command “systemctl list-units –type=service –state=running” or “service –status-all | grep ‘\[ + \]’” to check the running service on Linux.

Python Convert Dictionary to JSON-01

Python | Convert Dictionary to JSON

The “json.dumps()” function of the json module converts the value of the dictionary into JSON. The value is stored in “keys” and then converted into JSON.