Niharikaa Aitam has Published 93 Articles

How to match non-word characters in Python using Regular Expression?

Niharikaa Aitam

Niharikaa Aitam

Updated on 08-Jun-2025 10:26:33

2K+ Views

A Non-word character is any type of character that is not a letter, digit, or underscore, i.e., anything other than [a-z, A-Z, 0-9_]. Examples of non-word characters are symbols, punctuation marks, spaces, tabs, and other special characters. In Python, Regular Expressions (RegEx) are used to match the patterns in the ... Read More

How to define a Python dictionary within dictionary?

Niharikaa Aitam

Niharikaa Aitam

Updated on 07-Jun-2025 22:46:35

267 Views

A Dictionary in Python is a mutable, unordered collection of data in a key-value format. A dictionary can also contain another dictionary as a value, and this is known as a Nested Dictionary or a dictionary within a dictionary. In this article, we are going to explore all the ... Read More

How to recursively iterate a nested Python dictionary?

Niharikaa Aitam

Niharikaa Aitam

Updated on 07-Jun-2025 22:42:30

10K+ Views

A Dictionary in Python is a mutable, unordered collection of data in a key-value format. A dictionary can also contain another dictionary as a value and this is known as a Nested Dictionary or a dictionary within a dictionary. When working with this type of data structure, it’s often important ... Read More

What is the simplest way to SSH using Python?

Niharikaa Aitam

Niharikaa Aitam

Updated on 07-Jun-2025 22:28:13

6K+ Views

SSH is referred as secure shell which is useful to remotely manage computers in a secure manner. To connect to a server, we typically use PuTTy, MobaXTerm or the command-line ssh application. Every Unix, Linux and Mac server includes SSH as standard equipment and it is usable in every data ... Read More

What is the maximum size of list in Python?

Niharikaa Aitam

Niharikaa Aitam

Updated on 29-May-2025 05:24:23

5K+ Views

In Python, a list is a dynamic array that can be expanded in size as needed. The maximum size of a list is limited by the system's memory and the platform's architecture. In this article, we will explore how to determine the maximum size of a list in Python. Understanding ... Read More

What is the maximum length of string in Python?

Niharikaa Aitam

Niharikaa Aitam

Updated on 29-May-2025 05:23:14

7K+ Views

In Python, strings are dynamic and can extend to a very large size, and can be limited only by the system's available memory. In other languages, compared to Python, it does not define a strict upper bound on string length. Instead, the practical maximum length of a string depends on ... Read More

How to sort a dictionary in Python by values?

Niharikaa Aitam

Niharikaa Aitam

Updated on 29-May-2025 05:19:23

2K+ Views

Python allows dictionaries to be sorted using the built-in sorted() function. In this article, we will explore different ways to sort a dictionary in Python by its values. Sort a Dictionary Using itemgetter() method When we use the sorted() function along with the itemgetter() method of the operator module, the dictionary ... Read More

What is the maximum value of float in Python?

Niharikaa Aitam

Niharikaa Aitam

Updated on 29-May-2025 05:15:31

843 Views

In Python, floating-point numbers can be implemented using double-precision, i.e., 64-bit format, as per the IEEE 754 standard. These floats have a finite range and precision. The maximum value that a float can represent depends on the platform that we are using, but can be accessed using the sys.float_info attribute. ... Read More

How to sort a dictionary in Python by keys?

Niharikaa Aitam

Niharikaa Aitam

Updated on 29-May-2025 05:08:48

657 Views

Python allows dictionaries to be sorted using the built-in sorted() function. Although dictionaries in Python 3.7+ preserve insertion order, we can still create a new dictionary sorted by its keys using various methods. In this article, we will explore different ways to sort a dictionary in Python by its keys. ... Read More

How you will create your first program in Python?

Niharikaa Aitam

Niharikaa Aitam

Updated on 29-May-2025 05:01:40

179 Views

When we are starting with Python, mostly created first program will be "Hello, World", which prints the statement "Hello, World" as the output. Before we begin with the first program, we need to install Python in our system from the official website. Choose a Code Editor After installing Python, we ... Read More

Advertisements