Python Urllib Module Urllib package is the URL handling module for python. It is used to fetch URLs (Uniform Resource Locators). It uses the urlopen function and is able to fetch URLs using a variety of different protocols. Urllib is a package

# Day: March 17, 2022

## How to calculate dot product of two vectors in Python?How to calculate dot product of two vectors in Python?

How to calculate dot product of two vectors in Python? In mathematics, the dot product or also known as the scalar product is an algebraic operation that takes two equal-length sequences of numbers and returns a single number. Let us given two vectors A and B, and we

## Difference between Pandas VS NumPyDifference between Pandas VS NumPy

Difference between Pandas VS NumPy Pandas is an open-source, BSD-licensed library written in Python Language. Pandas provide high performance, fast, easy to use data structures and data analysis tools for manipulating numeric data and time series. Pandas is built on the numpy library and written in languages like Python, Cython, and C.

## Python – remove() and discard() in SetsPython – remove() and discard() in Sets

Python | remove() and discard() in Sets In this article, we will see how to remove an element in a set, using the discard() and remove() method. We will also learn the difference between the two methods, although both of

## Pretty Print JSON in PythonPretty Print JSON in Python

Pretty Print JSON in Python JSON is a javascript notation of storing and fetching the data. Data is usually stored in JSON, XML or in some other database. It is a complete language-independent text format. To work with JSON data, Python

## Python program to find the sum of all items in a dictionaryPython program to find the sum of all items in a dictionary

Python program to find the sum of all items in a dictionary Given a dictionary in Python, write a Python program to find the sum of all Items in the dictionary. Examples: Input : {'a': 100, 'b':200, 'c':300} Output :

## Python – Merge two lists into list of tuplesPython – Merge two lists into list of tuples

Python | Merge two lists into list of tuples Given two lists, write a Python program to merge the two lists into list of tuples. Examples: Input : list1 = [1, 2, 3] list2 = ['a', 'b', 'c'] Output

## Python strip() methodPython strip() method

Python String | strip() The strip() method in-built function of Python is used to remove all the leading and trailing spaces from a string. Syntax :string.strip([chars]) Parameter: chars(optional): Character or a set of characters, that needs to be removed from the string.

## Python program to find Cumulative sum of a listPython program to find Cumulative sum of a list

Python program to find Cumulative sum of a list The problem statement asks to produce a new list whose i^{th} element will be equal to the sum of the (i + 1) elements. Examples : Input : list = [10,

## iconphoto() method in Tkinter | Pythoniconphoto() method in Tkinter | Python

iconphoto() method in Tkinter | Python iconphoto() method is used to set the titlebar icon of any tkinter/toplevel window. But to set any image as the icon of titlebar, image should be the object of PhotoImage class. Syntax: iconphoto(self, default = False, *args)