Tag: what
What is a Structured Numpy Array and how to create and sort it in Python?
In this article we will discuss what is a structured numpy array and how to create it and sort it using different functions. What is a Structured Numpy Array ? A Structured Numpy Array is an array of structures (Similar to C struct). As numpy arrays are homogeneous i.e. they can contain data of same …
What is a Structured Numpy Array and how to create and sort it in Python?Read More
What is a dictionary in python and why do we need it?
In this article, we will discuss dictionaries in python and will try to answer questions like, What is a dictionary? Why do we need it? How to create a dictionary? How to access elements in a dictionary? What is a dictionary in python? In python, a dictionary is a kind of container that stores the …
What is a dictionary in python and why do we need it?Read More
What are indexes in MySQL
This article will discuss indexes in MySQL and how to create them, and what difference they make to queries dealing with tables with vast amounts of data. Table of Contents:- Introduction to MySQL indexes Where do we use indexes Types of indexes in MySQL MySQL add index while creating a table MySQL create index using …
What are views in MySQL
This article will discuss MySQL views with a few examples of creating, updating, and dropping them. Table of Contents:- Introduction to views in MySQL and usage of views How to create view in MySQL from single and multiple tables ALTER views in MySQL DROP views in MySQL Let us get started by looking into the …
What are triggers in MySQL
In this article, we will discuss triggers in a MySQL database. Table of Contents:- Introduction to MySQL triggers Where are triggers used Types of triggers MySQL create trigger example MySQL drop trigger example MySQL show triggers for a table Introduction to MySQL triggers As the name suggests, a trigger is a database object that is …
What is a List in Python and why we need it?
This article will answer questions like what a list is in Python and why we need a list data structure in Python. What is a List? The list is a sequential data structure in Python. It can contain a group of elements, which can be of the same or different data types. A basic example …
What is “yield” keyword in Python? – Complete Guide
In this python tutorial, you will learn about yield keyword. Like, what does yield keyword do in Python and why do we need it? Agenda What is yield? Usage of the return keyword Usage of the “yield” keyword Using yield with list data structure Using yield with tuple data structure Advantages of the yield keyword …
What is “yield” keyword in Python? – Complete GuideRead More
What does ‘b’ mean in front of a string in Python?
In this python tutorial, you will learn what ‘b’ will do in front of a string. Table of Contents Define “b” How to create a byte string? Encode string into a byte Encode a string to byte string with UTF-8 encoding. Encode a string to byte string with UTF-16 encoding. Encode a string to byte …
What is the alternative of switch statement in Python?
In this article, we will discuss about the alternatives of switch statement in Python. Table Of Contents Introduction New Switch Statement with match and case keywords in Python Alternative of Switch Statement in Python: If-Else-Elif Alternative of Switch Statement in Python: Using dictionary Summary Introduction In other programming languages, like C++ and Java, we have …
What is the alternative of switch statement in Python?Read More
What does if ` __name__ ` == ` “__main__” `: do?
In this article, we will learn about what does if __name__ == “__main__” do? Before diving into deep, its simple meaning is: It is just a simple if block where, if var __name__ is equal to string “__main__” then the indented code will run, if not then the code won’t run. Now lets discuss this …