Author: admin

  • Python Dictionary

    Dictionaries are a useful data structure for storing data in Python because they are capable of imitating real-world data arrangements where a certain value exists for a given key. The data is stored as key-value pairs using a Python dictionary. A dictionary is, in other words, a group of key-value pairs, where the values can…

  • Python Set

    A Python set is the collection of the unordered items. Each element in the set must be unique, immutable, and the sets remove the duplicate elements. Sets are mutable which means we can modify it after its creation. Unlike other collections in Python, there is no index attached to the elements of the set, i.e.,…

  • Python List Vs Tuple

    This tutorial will study the major differences between lists and tuples and how to handle these two data structures. Lists and tuples are types of data structures that hold one or more than one objects or items in a predefined order. We can contain objects of any data type in a list or tuple, including…

  • Python Tuples

    A comma-separated group of items is called a Python triple. The ordering, settled items, and reiterations of a tuple are to some degree like those of a rundown, but in contrast to a rundown, a tuple is unchanging. The main difference between the two is that we cannot alter the components of a tuple once…

  • Python List

    In Python, the sequence of various data types is stored in a list. A list is a collection of different kinds of values or items. Since Python lists are mutable, we can change their elements after forming. The comma (,) and the square brackets [enclose the List’s items] serve as separators. Although six Python data…

  • Python String

    Till now, we have discussed numbers as the standard data-types in Python. In this section of the tutorial, we will discuss the most popular data type in Python, i.e., string. Python string is the collection of the characters surrounded by single quotes, double quotes, or triple quotes. The computer does not understand the characters; internally,…

  • Python Pass Statement

    What is Python’s Pass Statement? The pass statement is also known as the null statement. The Python mediator doesn’t overlook a Remark, though a pass proclamation isn’t. As a result, these two Python keywords are distinct. We can use the pass statement as a placeholder when unsure of the code to provide. Therefore, the pass…

  • Python continue Statement

    Python continue keyword is used to skip the remaining statements of the current loop and go to the next iteration. In Python, loops repeat processes on their own in an efficient way. However, there might be occasions when we wish to leave the current loop entirely, skip iteration, or dismiss the condition controlling the loop.…

  • Python break statement

    The break is a keyword in python which is used to bring the program control out of the loop. The break statement breaks the loops one by one, i.e., in the case of nested loops, it breaks the inner loop first and then proceeds to outer loops. In other words, we can say that break…

  • Python While Loops

    In coding, loops are designed to execute a specified code block repeatedly. We’ll learn how to construct a while loop in Python, the syntax of a while loop, loop controls like break and continue, and other exercises in this tutorial. Introduction of Python While Loop In this article, we are discussing while loops in Python.…