Articles on Trending Technologies

Technical articles with clear explanations and examples

Different ways to hide elements using CSS

Yaswanth Varma
Yaswanth Varma
Updated on 15-Mar-2026 361 Views

There are instances when you simply don't want every element of your website to be exposed. In other words, you don't want every template element of a page, post, header, or footer displayed every time it appears. And while it might appear that you need to update the template or theme code each time you want this omission to happen, that's not actually true. In fact, with only CSS, you may rapidly hide parts of your website. And it's really not that difficult. Let's dive into the article for getting better understanding of the different ways to hide elements ...

Read More

Convert list of tuples into digits in Python

Pradeep Elance
Pradeep Elance
Updated on 15-Mar-2026 269 Views

Python has a wide variety of data manipulation capabilities. We have a scenario in which we are given a list which has elements which are pair of numbers as tuples. In this article we will see how to extract the unique digits from the elements of a list which are tuples. Using Regular Expression and Set We can use regular expression module and its function called sub. It is used to replace a string that matches a regular expression instead of perfect match. So we design a regular expression to convert the tuples into normal strings and then ...

Read More

Convert list of strings and characters to list of characters in Python

Pradeep Elance
Pradeep Elance
Updated on 15-Mar-2026 529 Views

When working with lists, we may come across a situation where we have to process a string and get its individual characters for further processing. In this article we will see various ways to convert a list of strings and characters to a list of individual characters. Using List Comprehension We design a nested loop using list comprehension to go through each element of the list and another loop inside this to pick each character from the element which is a string ? days = ['Mon', 'd', 'ay'] # Given list print("Given list :", days) ...

Read More

How to Create Image Accordion using HTML and CSS?

Aayush Mohan Sinha
Aayush Mohan Sinha
Updated on 15-Mar-2026 843 Views

An image accordion is a popular web interface element that allows users to expand and collapse image sections for an interactive browsing experience. This technique creates a smooth, space-efficient way to display multiple images where only one section is fully visible at a time. Syntax .accordion-container { display: flex; } .accordion-item { flex: 1; transition: all 0.3s ease; cursor: pointer; } .accordion-item:hover { flex: expanded-ratio; } What is an Accordion? An accordion ...

Read More

Convert dictionary object into string in Python

Pradeep Elance
Pradeep Elance
Updated on 15-Mar-2026 427 Views

In Python data manipulation, you may need to convert a dictionary object into a string. This can be achieved using two main approaches: the built-in str() function and the json.dumps() method. Using str() The most straightforward method is to apply str() by passing the dictionary as a parameter. This preserves Python's dictionary representation with single quotes ? Example schedule = {"Mon": "2 pm", "Wed": "9 am", "Fri": "11 am"} print("Given dictionary:", schedule) print("Type:", type(schedule)) # Using str() result = str(schedule) print("Result as string:", result) print("Type of Result:", type(result)) The output of the ...

Read More

Convert case of elements in a list of strings in Python

Pradeep Elance
Pradeep Elance
Updated on 15-Mar-2026 3K+ Views

As part of data manipulation, we often need to standardize the case of strings in a list. In this article, we will see how to convert a list of string elements with mixed cases to a uniform case using Python's built-in string methods. Using lower() with map() The lower() function converts all characters in a string to lowercase. We can use map() with lambda to apply this function to each element in the list. Example days = ['MoN', 'TuE', 'FRI'] # Given list print("Given list:") print(days) # Convert to lowercase using map() and ...

Read More

How to create a CSS3 property for each corner?

Jaisshree
Jaisshree
Updated on 15-Mar-2026 236 Views

CSS3 provides several methods to create custom corner styles for elements. This allows designers to move beyond simple rectangular shapes and create more visually appealing interfaces with unique corner treatments. Syntax /* Method 1: Border-radius */ border-radius: top-left top-right bottom-right bottom-left; /* Method 2: Individual corner properties */ border-top-left-radius: value; border-top-right-radius: value; border-bottom-right-radius: value; border-bottom-left-radius: value; /* Method 3: Clip-path */ clip-path: polygon(x1 y1, x2 y2, x3 y3, x4 y4); /* Method 4: Mask-image */ mask-image: gradient-function; Method 1: Using Border-radius Property The border-radius property allows you to specify different radius ...

Read More

Convert byteString key:value pair of dictionary to String in Python

Pradeep Elance
Pradeep Elance
Updated on 15-Mar-2026 1K+ Views

A byte string in Python is a string prefixed with letter b. When working with dictionaries containing byte strings, you often need to convert them to regular string dictionaries for easier processing and display. Using Dictionary Comprehension with ASCII The decode() method converts byte strings to regular strings using a specified encoding. Here's how to convert both keys and values using ASCII encoding ? byte_dict = {b'day': b'Tue', b'time': b'2 pm', b'subject': b'Graphs'} print("Original byte dictionary:") print(byte_dict) # Convert using dictionary comprehension with ASCII string_dict = {key.decode('ascii'): value.decode('ascii') for key, value in byte_dict.items()} print("Converted string ...

Read More

Convert a string representation of list into list in Python

Pradeep Elance
Pradeep Elance
Updated on 15-Mar-2026 14K+ Views

In Python, you may encounter situations where a list is stored as a string representation. This commonly happens when reading data from files, APIs, or user input. Python provides several methods to convert these string representations back into actual list objects. Using strip() and split() This method manually removes the square brackets and splits the string by commas. It works well for simple cases but treats all elements as strings ? string_data = "[Mon, 2, Tue, 5]" # Given string print("Given string:", string_data) print("Type:", type(string_data)) # Convert string to list result = string_data.strip('[]').split(', ') ...

Read More

How to create Olympics logo using HTML and CSS?

Nikhilesh Aleti
Nikhilesh Aleti
Updated on 15-Mar-2026 1K+ Views

The given task in this article is to create an Olympics logo using only HTML and CSS. The "Olympic logo" consists of five interlocked circles with five different colors: blue, black, red, yellow, and green. These five colored rings represent the five inhabited continents of the world − Africa, the Americas, Asia, Europe, and Oceania. Approach Setting up the Logo Container − We start by creating a element with the class name olympic-logo. This serves as the container for the Olympic symbol. We set its width, height, background color, position, and margin to achieve the ...

Read More
Showing 19501–19510 of 61,297 articles
Advertisements