How to check data type in Python

Data types are essential determine the kind of values that can be stored in a variable and the operations that can be performed on them . Python has several built-in data types such as: integer(int),floating- point number(float),strings(str),lists(list),tuples(tuple),dictionaries(dict) Method 1: Using the type() Function The simplest way to check the data type of an object in …

How to check data type in Python Read More »

How to Capitalize the first letter in a string in Python

In this tutorial, we are going to learn about how to Capitalize the first letter of each word in a string in Python in a very simple and understandable way. In English, letter capitalization is very important. because it follows to some grammatical rules, proper nouns, titles and headings, sentence structure, professions and formal compositions, …

How to Capitalize the first letter in a string in Python Read More »

How to get the ASCII value of any character in Python

In this tutorial, we will learn about how to get the ASCII value of any character in Python with this easy-to-follow guide. This tutorial will make you understand it easily with a simple example. ASCII stands for American Standard Code for Information Interchange. These ASCII values are nothing but the representations of characters in computers …

How to get the ASCII value of any character in Python Read More »

Scrap a webpage site title using Python

Scrap a webpage site title using Python   Description: To scrap a webpage title first we need to have some libraries installed. Libraries like ‘request’ and ‘BeautifulSoup’ can be used to scrap the title. Implementation: import requests from bs4 import BeautifukSoup def get_webpage_title(url): try: response = requests.get(url) response.raise_for_status() soup = BeautifulSoup(response.content, ‘html.parser’) title = soup,title.string …

Scrap a webpage site title using Python Read More »

To Detect human from an image using Python

Detecting humans in images is a common task in computer vision, often accomplished using machine learning models. Here’s a high-level overview of the theory and a practical guide to implement this in Python. Detecting Human from an Image Using Python Object Detection Basics: Object Detection involves identifying and localizing objects within an image. This is …

To Detect human from an image using Python Read More »

Scroll to Top