Harshit Sachan has Published 37 Articles

Python Program to sort a tuple of custom objects by properties

Harshit Sachan

Harshit Sachan

Updated on 20-Feb-2023 17:51:14

305 Views

Let us now dive into what a custom object in python is. We know that python provides us with a lot of pre-defined datatypes which can be used to store various types of data. But there are times where we have to define custom datatypes that can store data that ... Read More

Python Program to Replace Elements in a Tuple

Harshit Sachan

Harshit Sachan

Updated on 20-Feb-2023 15:57:46

3K+ Views

In this article, you will find out how to use Python to find the first and last elements of a tuple in this tutorial. The quick response is that you can access the first and last elements of the tuple in Python using the index operator([]). The methods described ... Read More

Python Program to print key value pairs in a dictionary

Harshit Sachan

Harshit Sachan

Updated on 20-Feb-2023 15:56:41

4K+ Views

A dictionary in python is a data structure which stores a collection of key value pairs. Unlike other data structures a dictionary contains 2 value at a particular place. A dictionary is a collection which is ordered, mutable and does not allow duplicate elements. A dictionary can be ... Read More

Python Program to search an element in a tuple

Harshit Sachan

Harshit Sachan

Updated on 20-Feb-2023 15:55:54

3K+ Views

In Python, searching for elements within a data structure is a common task and different types of data structures should aim to provide efficient methods for searching. The problem of searching involves finding a specific element within a container and returning a value if it is not found. One data ... Read More

Python Program to find the largest element in a tuple

Harshit Sachan

Harshit Sachan

Updated on 20-Feb-2023 15:54:55

695 Views

One of the most common problems in computer science is the problem of searching. To check whether a given element exists in a variable is important and sometimes the item we must search for, can be the maximum, minimum, most frequent etc. in this article we will see how we ... Read More

How to transform background image using CSS3

Harshit Sachan

Harshit Sachan

Updated on 20-Feb-2023 15:52:46

1K+ Views

HTML stands for Hyper Text Markup Language. It functions as a tool for constructing Web pages as well as an illustration of how one is put together. It consists of a number of parts. Its components provide the browser instructions on how to render the content. The appearance of HTML ... Read More

How to create an accordion hover effect with box-shadows in CSS

Harshit Sachan

Harshit Sachan

Updated on 20-Feb-2023 15:48:37

521 Views

Hyper Text Markup Language is what HTML is. It serves as both an example of how a Web page is put together and a tool for creating Web pages. It is made up of several components. Its elements provide instructions to the browser on how to render the content. ... Read More

How to create a Non-Rectangular Header using HTML & CSS

Harshit Sachan

Harshit Sachan

Updated on 20-Feb-2023 15:47:03

352 Views

Hyper Text Markup Language is referred to as HTML. It is used for building Web pages; it explains how a Web page is put together. There are several components to it. The components in it instruct the browser on how to render the material. Cascading style sheets, or CSS, ... Read More

Create the Indian Flag using HTML and CSS

Harshit Sachan

Harshit Sachan

Updated on 20-Feb-2023 15:41:30

7K+ Views

We know that HTML and CSS are the languages used for the web and its design, but we can do much more than just making web apps. For example, we can also use them to make a fun project which will require significant knowledge of both these languages. So, the ... Read More

Python Program to add element to first and last position of linked list

Harshit Sachan

Harshit Sachan

Updated on 17-Feb-2023 15:26:42

316 Views

In Python, a linked list is a linear data structure that consists of a chain of nodes, where each node contains a value and a reference to the next node in the chain. In this article, we will be discussing how to add an element to the first and ... Read More

Advertisements