Found 26504 Articles for Server Side Programming

What are the prerequisites of the seaborn library?

Niharika Aitam
Updated on 19-Oct-2023 15:08:33

257 Views

Seaborn library is used to create the visualization of plots. This library uses the matplotlib library to visualize the plots. It has high visualization API. To work with the seaborn library we should have knowledge the below mentioned aspects. Technical knowledge We should have basic knowledge about computer programming and terminology. The basic knowledge of coding and computer operating skills are necessary to work with seaborn. Knowledge on Python Programming: The first and foremost important knowledge that we should have to work with the seaborn library is Python language. Python is one of the most trending languages in present ... Read More

What is Seaborn and why should we use seaborn?

Niharika Aitam
Updated on 19-Oct-2023 15:07:29

219 Views

There are many libraries in the Python programming language. Among them one of the libraries is the seaborn library. It is an open source library. Seaborn library is used to create the visualization of plots. This library uses the matplotlib library to visualize the plots. It has high visualization API. It is mainly used to work with the Data Analysis. In the Seaborn library there are many default plots and styles to beautify the plot. It is collaborated with the features of the matplotlib library of python. It is also integrated with the pandas library data structures. The aim of ... Read More

Python Program to Check Overlapping Prefix - Suffix in Two Lists

Niharika Aitam
Updated on 19-Oct-2023 15:05:58

398 Views

Generally, a prefix is a sequence of characters that appear at the beginning of a string or list or tuple or number, and a suffix is a sequence of characters that appear at the end of a string or number or list or tuple. For example, when we consider the list [1, 2, 3, 4, 5], the prefix is [1, 2, 3] and the suffix will be [3, 4, 5] The prefix and suffix are often used in various programming operations, such as string manipulation, text processing, and data analysis, to refer to specific parts of a sequence. Checking ... Read More

Python program to check if the given string is IPv4 or IPv6 or Invalid

Niharika Aitam
Updated on 19-Oct-2023 15:04:18

2K+ Views

An IP address is the short form of Internet Protocol address, which is a numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication. It serves as an identifier for the device, allowing it to send and receive data over the network. There are two versions of IP addresses commonly used: IPv4 (Internet Protocol version 4): This is the most widely used version of IP addresses. It consists of four sets of numbers separated by periods, such as "192.168.0.1". Each set can have a value between 0 and 255, representing a total ... Read More

Python program to check if number is palindrome (one-liner)

Niharika Aitam
Updated on 19-Oct-2023 14:59:04

714 Views

Generally, palindrome is a word, phrase, number, or other sequence of characters that reads the same forwards and backwards. In the context of a Python program, a palindrome usually refers to a string or number that remains the same when its characters or digits are reversed. For example, let’s consider the word Madam, when we read this word from left to right and right to left the word will be the same. So this is a palindrome. There are different approaches to find if the given number is palindrome in python. First let’s see the basic approach without using the ... Read More

Python Program to check if elements to the left and right of the pivot are smaller or greater respectively

Niharika Aitam
Updated on 19-Oct-2023 14:56:54

125 Views

Generally, pivot table is the table which contains the grouped values formed by aggregating the individual elements within one or more discrete categories. In Python, the term "pivot" is often associated with sorting algorithms or operations that involve rearranging elements based on a specific value or condition. The pivot can be any element or position within the data structure, and its purpose is to divide the data into two parts: elements smaller than the pivot and elements greater than the pivot. There are different ways to check if the elements to the left and right of the pivot are smaller ... Read More

Python Program to check date in date range

Niharika Aitam
Updated on 19-Oct-2023 14:43:57

2K+ Views

In this article we will learn how to check if the given input date falls in the specified date range or not. There are ways to do so; some of them are explained in detail. Using the datetime module Datetime module offers classes to manipulate the dates and times. This module provides various functions and methods such as date, time, datetime, timedelta, minyear, maxyear, UTC etc. Here in this article we will use the datetime() function of the datetime module. The datetime() accepts the date, month and year as the input arguments and returns the date as output. ... Read More

Python program to Check all strings are mutually disjoint

Niharika Aitam
Updated on 19-Oct-2023 14:41:20

162 Views

String is one of the data structures which hold the data enclosed in double quotes or in single quotes i.e. any data type enclosed inside the quotes considered as string. It is immutable, once we define the data we cannot change or modify. In python we have a function called str() which takes any data as the input and returns the string as output. Mutually disjoint means if no two strings are having the same elements in common. There are different ways to check if all strings are mutually disjoint. Let’s go through each one. Using nested loops Nested loop ... Read More

Python program to change the value of a dictionary if it equals K

Niharika Aitam
Updated on 19-Oct-2023 14:38:42

125 Views

Dictionary is one of the data structure available in python to store any datatype of data in the format of key and value pair. It is denoted by {} curly braces. The key in the dictionary is unique and the values in the dictionary can be repeated. The key and values pairs are separated by using the semi colon ‘:’. It is mutable i.e. once the dictionary created, we can modify the data. Dictionaries are versatile and widely used in Python for mapping and storing data where quick access to values based on keys is required. The dictionary is unordered ... Read More

Python program to calculate gross pay

Niharika Aitam
Updated on 19-Oct-2023 14:36:00

505 Views

Basically Gross pay is the total amount paid to an employee for the total time he/she worked, i.e. this is the full amount of salary of an employee before the taxes and deductions. The Gross pay also includes the bonuses, overtime or reimbursements from an employer on top of the salary pay. Mathematically the formula for the gross pay is as follows. Hours worked * pay per hour = gross pay per period For example, if an employee worked for 200 hours in a given period and earned Rs.300/- for an hour then the gross pay will be ... Read More

Advertisements