Web scraping, often called web crawling or web spidering, is a powerful tool for working with data on the web. With a web scraper, we can mine data about a set of products, get a large corpus of text or …
In this article, we will learn how to count the number of vowels and consonants in a string Python. In english alphabet, the letters ‘a, e, i, o, u’ constitute the vowels and rest of the alphabets as consonants. Output: …
Speech Recognition is an important feature in several applications used such as home automation, artificial intelligence, etc. First, let’s install the required modules: pip install speechrecognition pip install pyaudio pip install pyttsx3 Speech Input Using a Microphone and Translation of …
In this article, we will see how to convert set to list in Python. Method 1: Using list() A set can be easily typecast into a list using the list() function. Output: Method 2: Using sorted() We can use the …
The upper() method in Python converts the lowercase letters to uppercase. This built-in function doesn’t take any parameters. Returns an uppercased string of the given string. Output:
In this article, we will see how to convert list to int in Python. We will discuss converting a list of integers into a single integer. Given a list of integers, below is a Python program to convert the given …
In this article, we will see how to convert integer to binary in Python. Suppose we have an integer of value 12 with us, and we need to find the binary equivalent of this integer. One way is to use …
MongoDB is a document-oriented database program. It is NoSQL database and one of the most used databases nowadays. It provides a schema-less platform. Thereby suitable for evolving with time data. We can work with MongoDb using Python. The native MongoDB …
A float object is a real number that is written with a decimal point dividing the integer and fractional part. Converting a float object results in a string containing the value of the float object. We can make use of the str() to convert the float …
In this article, we’ll take a look at how to convert Bytes to a String in Python. Convert Bytes to String with decode() Convert Bytes to String with codecs Convert Bytes to String with str()