Numbers and more in Python

In this tutorial, we will learn about numbers in Python and how to use them. We'll learn about the following topics: 1.) Types of Numbers in Python 2.) Basic Arithmetic 3.) Differences between classic division and floor division 4.) Object Assignment in Python Types of numbers Python has various "types" of numbers (numeric literals). We'll … Continue reading Numbers and more in Python

Remove Space in Python – (strip Leading, Trailing, Duplicate spaces in string)

"Learn everyday to grow everyday" In this tutorial we will study about rstrip, lstrip, strip, replace and regular expression to Remove (strip) space at the start of the string in Python Remove (strip) space at the end of the string in Python Remove (strip) white spaces from start and end of the string. Remove all … Continue reading Remove Space in Python – (strip Leading, Trailing, Duplicate spaces in string)

.strip() , .replace() and findAll()

  Today's topic is .replace(), .strip() and findAll() *****Learn everyday to grow everyday***** This three are very useful function for beginners and for web scrapers while they are scraping a webpage.    .strip() .strip() is used to remove white space from the start and end of the string. ## .rstrip()  and .lstrip() .rstrip() is used … Continue reading .strip() , .replace() and findAll()

WEB SCRAPING(scrap h1 tag from list of urls)

  For detailed explanation and code click here - https://github.com/theone9807/Webscraping-scrap-h1-tag-from-list-of-urls- #made a web scrapper which scrapped H1 from a page . #And it is able to scrap from a list of urls and save it in a data frame. In [1]: import pandas as pd df = pd.read_excel('test.xlsx', sheetname=0) # can also index sheet by name … Continue reading WEB SCRAPING(scrap h1 tag from list of urls)

enumerate() function in python

There are many situations where we'll need to iterate over multiple lists in tandem, such as this one: In the example above, we have two lists. The second list describes the viciousness of the animals in the first list. A Dog has a viciousness level of 1, and a SuperLion has a viciousness level of 10. We want to retrieve the position of the item in animals the loop … Continue reading enumerate() function in python