Saba Hilal has Published 63 Articles

Python program to find the string weight

Saba Hilal

Saba Hilal

Updated on 10-Jul-2023 15:29:07

771 Views

In this article, the given task is to find the total string weight. To calculate the string weight, we have converted the given strings into the lower form. Considering the weight of the characters, we have taken a=1, b=, 2 and so up to z=26. In this Python article, using ... Read More

How to load and save 3D Numpy Array file using savetxt() and loadtxt() functions?

Saba Hilal

Saba Hilal

Updated on 11-May-2023 11:40:23

4K+ Views

For using arrays in Python, NumPy is commonly used. Sometimes, the data is stored in a multidimensional or 3D array. If loadtxt() or savetxt() functions are used to save or load the array data, it will require a 2d array. If the 3D array is used, then it will give ... Read More

How to lowercase the column names in Pandas dataframe?

Saba Hilal

Saba Hilal

Updated on 11-May-2023 11:31:39

5K+ Views

In this article, the user will understand how to lowercase the column names in Pandas dataframe. Using three different examples, the ways are given for converting the dataframe columns in lowercase. For these examples, a Zomato dataset given on Kaggle is used. The kaggle dataset was available in CSV (Comma ... Read More

How to load a TSV file into a Pandas Dataframe?

Saba Hilal

Saba Hilal

Updated on 11-May-2023 11:25:53

5K+ Views

Sometimes, the task is to analyze a dataset and use the data from a TSV (Tab Separated Values) file. For this, the TSV file is sometimes converted to a dataframe. A dataframe is a labeled two-dimensional structure that has different types of columns. In this article, using two different examples, ... Read More

How to limit character input in textarea including count in jQuery?

Saba Hilal

Saba Hilal

Updated on 10-May-2023 18:11:42

2K+ Views

Suppose the total permitted character is N and the user has entered M characters in the textarea, where N>M. Now only (N-M) characters are left to be entered. After this (N-M) becomes 0, the characters should not be allowed to be entered. In this article, using JQuery, in three ... Read More

How to make a display in a horizontal row?

Saba Hilal

Saba Hilal

Updated on 10-May-2023 18:08:27

943 Views

In this article, the user will understand how to make a display in a horizontal row in the HTML. This can be easily done by using “display: inline” feature while setting the style or by using the table row feature. This process of displaying some elements of a webpage in ... Read More

How to make a vertical line using HTML?

Saba Hilal

Saba Hilal

Updated on 10-May-2023 18:00:16

3K+ Views

Sometimes, the task is to display a vertical line on the web page and to set the style for that vertical line. Using the HTML, this process of creating a vertical line on the webpage is demonstrated in this article. First the method is given where the border style is ... Read More

How to make an empty div take space?

Saba Hilal

Saba Hilal

Updated on 10-May-2023 17:22:23

4K+ Views

HTML is one of the most popular language to create interactive web pages. The space inside the div tag is marked by either enclosing it with a border or coloring it up. First, the method is given where the height and width are specified for the div tag to create ... Read More

A Game Using Javascript – Fire the bullets

Saba Hilal

Saba Hilal

Updated on 10-May-2023 17:01:18

556 Views

This game is made using JavaScript and the game lab of code.org. The game Story/Rules/Intrroduction The player has to move the commando by pressing the UP, DOWN, LEFT and RIGHT arrow keys and make the commando escape the walled area. To go out of the door the commando needs to ... Read More

How to Locate Elements using Selenium Python?

Saba Hilal

Saba Hilal

Updated on 04-May-2023 17:49:34

1K+ Views

With the frequent change in technology to present the content on the web it is often needed to redesign and restructure the content of the web pages or websites. Selenium with Python is a good combination that is helpful to extract the desired content from web pages. Selenium is a ... Read More

Advertisements