Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
Design a Portfolio Webpage using HTML and CSS
To design a portfolio webpage using HTML and CSS can be useful to showcase your best works and attract attention of professionals in collaborating or hiring you. Portfolio website serves as a platform to display your work and demonstrate your skills. It has the same purpose as a CV (Curriculum vitae). The portfolio website will showcase them with engaging visual images and often more detailed than a hand-written CV. In this article, we will learn and understand how we can design a portfolio webpage using HTML and CSS through stepwise explanation and example code. Why Create a Portfolio ...
Read MorePython - Convert column to separate elements in list of lists
When working with data structures in Python, you often need to reshape lists by separating columns into different elements. This is particularly useful when converting tabular data into different formats or extracting specific column ranges from nested lists. Using List Slicing and Comprehension You can slice lists at specific positions to create a columnar structure. This approach splits each sublist into two parts: elements from index 2 onwards and elements from index 0 to 2 ? Example data = [[5, 10, 15, 20], [25, 30, 35, 40], [45, 50, 55, 60]] print("The given input ...
Read MorePython - Convert a set into dictionary
Python provides lot of flexibility to handle different types of data structures. There may be a need when you have to convert one Data Structure to another for a better use or better analysis of the data. In this article we will see how to convert a Python set to a Python dictionary. Using zip() and dict() The dict() function can be used to take input parameters and convert them to a dictionary. We also use the zip() function to group the keys and values together which finally become the key-value pairs in the dictionary ? Example ...
Read MoreDesign a transparent login/Sign Up webpage using HTML and CSS
In HTML, the login forms are used to collect information about the user and have a button to send the details for server-side operations. The login form contains basic information such as Name, Date of birth, Email, Mobile number, Gender, Address, etc. Nowadays, HTML forms are used in almost every website on the Internet to gather user information. In this article, we are going to design a transparent login form on a webpage using HTML and CSS. Syntax .transparent-element { background: none; background-color: transparent; ...
Read MoreHow to print double quotes with the string variable in Python?
Printing double quotes with string variables can be tricky since double quotes are part of Python's string syntax. This article explores several methods to include double quotes in your printed output. Common Mistakes The following examples show what not to do when trying to print double quotes ? print(" ") print(" " " ") print(""aString"") The output of the above code is ? File "", line 3 print(""aString"") ^ SyntaxError: invalid syntax Method 1: ...
Read MoreBigram formation from given a Python list
A bigram is a pair of consecutive words formed from a sentence. In Python, bigrams are heavily used in text analytics and natural language processing to analyze word patterns and relationships. What is a Bigram? A bigram takes every two consecutive words from a sentence and creates word pairs. For example, from "hello world python", we get bigrams: ("hello", "world") and ("world", "python"). Using enumerate() and split() This approach splits the sentence into words and uses enumerate() to create pairs from consecutive words ? sentences = ['Stop. look left right. go'] print("The given list ...
Read MoreHow to display a list in n columns format?
In this article, we will learn how to display a list in "n" column format in HTML and CSS with the help of CSS Multi-Column Layout, Flexbox, and CSS Grid properties. Displaying a list in columns can be a useful way to save space and make the information more visually appealing. We can achieve this by using different approaches that rely on column-count, flexbox, and grid properties respectively. Syntax /* Multi-Column Layout */ selector { column-count: number; } /* Flexbox Approach */ selector { display: flex; ...
Read MoreAvoiding quotes while printing strings in Python
When printing strings in Python, we often need to avoid displaying quotes around individual string elements. This is especially useful when working with lists of strings where we want clean, formatted output without the quotation marks that normally appear. Using join() Method The join() method combines list elements into a single string using a specified separator. This eliminates quotes around individual elements ? Example days = ['Mon', 'Tue', 'Wed'] # The given list print("The given list is : " + str(days)) print("The formatted output is : ") print(' ** '.join(days)) The output ...
Read MoreHow to disable arrows from Number input?
In this article, we will learn how to disable and hide arrows from number-type input fields using CSS. Number-type inputs display spinner arrows by default that allow users to increment or decrement values, but sometimes you may want to remove these for a cleaner interface. Number-type inputs are useful when we only want numeric input from users, like input for age, height, weight, etc. By default, browsers show spinner arrows in number inputs that help change the values. Syntax /* WebKit browsers (Chrome, Safari) */ input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; ...
Read Moreaskopenfile() function in Python Tkinter
The askopenfile() function in Python Tkinter allows users to browse their file system and select a file through a graphical dialog box. This eliminates the need to hardcode file paths and provides a user-friendly way to open files in your applications. Syntax filedialog.askopenfile(mode='r', **options) Parameters The function accepts several optional parameters ? mode ? File opening mode (default is 'r' for read) initialdir ? Initial directory to open filetypes ? Specify allowed file types title ? Dialog window title Basic Example Here's a simple program that opens a file ...
Read More