Harshit Sachan

Harshit Sachan

25 Articles Published

Articles by Harshit Sachan

Page 2 of 3

Python Program to search an element in a tuple

Harshit Sachan
Harshit Sachan
Updated on 20-Feb-2023 7K+ 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 structure that can be used for this task is a tuple, which stores a collection of different types of data in a single variable. These items can be accessed by their index and Python offers various methods to work with them. Tuples are immutable, meaning that once created, they cannot ...

Read More

How to transform background image using CSS3

Harshit Sachan
Harshit Sachan
Updated on 20-Feb-2023 2K+ 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 components in different print and digital media, such as displays and other print and digital forms, is controlled by CSS, or cascading style sheets. Time is significantly reduced when CSS is used. It enables the concurrent control of several web page designs. In this post, we'll discover how to ...

Read More

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

Harshit Sachan
Harshit Sachan
Updated on 20-Feb-2023 704 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. CSS, or cascading style sheets, define how HTML elements appear in various print and digital media, such as displays and other print and digital forms. The use of CSS considerably reduces time. It allows for the simultaneous management of many webs page designs. This article, we will learn how to ...

Read More

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

Harshit Sachan
Harshit Sachan
Updated on 20-Feb-2023 555 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, define how HTML components should appear in various print and digital media, including displays and other print and digital forms. The use of CSS saves a lot of time. It can control the design of several web pages at once. In this article, we will learn about how to create ...

Read More

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

Harshit Sachan
Harshit Sachan
Updated on 17-Feb-2023 568 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 last position of a linked list in Python. Linked List in Python A linked list is a referential data structure that holds a group of elements. it is similar in terms of an array but while the data is stored in contiguous memory location in an array, in linked ...

Read More

Python Program to check if the tuple is empty

Harshit Sachan
Harshit Sachan
Updated on 17-Feb-2023 4K+ Views

In Python, it is often necessary to check if a tuple is empty in order to determine what actions to take in a program. A tuple in python is a pre-defined datatype that stores heterogeneous data, data of different types, in a single variable. The items can be indexed for further operations and python provides a wide array of methods to work upon them. They are immutable by nature which means we cannot make changes after we have created a tuple. This is whenever we perform some operation on the tuple a new tuple with resulting values is created. ...

Read More

Python Program to remove duplicate elements from a dictionary

Harshit Sachan
Harshit Sachan
Updated on 17-Feb-2023 5K+ Views

In this article, we will be discussing how to remove duplicate elements from a dictionary in Python. A dictionary is a data structure that stores key-value pairs, and it is an essential data type to understand when learning Python. However, there may be cases where we have a dictionary with duplicate elements, and we want to remove them to clean up the data. We can declare a dictionary in the following way − thisdict = { "brand": "Ford" , "model": "Mustang" , "year": 1964 } However, a dictionary can contain duplicate value for different keys, but we might ...

Read More

Python program to print the keys and values of the tuple

Harshit Sachan
Harshit Sachan
Updated on 17-Feb-2023 2K+ Views

In Python, tuples are a useful data type for storing a collection of items. Sometimes, it may be necessary to print the keys and values of a tuple in order to understand or debug your code. In this article, we will be discussing, how to print the keys and values of a tuple in Python. We will go over the syntax for accessing these elements and will provide examples of how to do so. First, we will learn about what is tuple and what we mean by the keys and values of the tuple. What does a Python tuple mean? ...

Read More

Python Program to compare elements in two dictionaries

Harshit Sachan
Harshit Sachan
Updated on 17-Feb-2023 3K+ Views

Dictionaries are a powerful data type in Python that allow you to store data as key-value pairs. In this article, we will be discussing how to compare elements in two dictionaries in Python. We will go over the syntax for comparing dictionary elements and will provide examples of how to do so. Dictionaries in Python In Python, a dictionary can be created by placing a sequence of elements within curly { } brackets , separated by ‘comma’ ( , ). Dictionary holds pairs of values, one being the key and the other corresponding pair element being its value. Values ...

Read More

10 CSS Functions every Front-end Developer should know

Harshit Sachan
Harshit Sachan
Updated on 17-Feb-2023 767 Views

CSS (Cascading Style Sheets) is a stylesheet language used for describing the look and formatting of a document written in HTML. It is a crucial part of web development, as it allows developers to control the appearance of their websites and applications. In this article, we will be discussing some of the most useful CSS functions that every frontend developer should be familiar with. These functions can be used to add style and formatting to your website or application and can greatly improve the user experience. Like any other programming language, Functions in CSS makes the task easier by ...

Read More
Showing 11–20 of 25 articles
Advertisements