Tag Python found of 16 results

Using Python Check Leap Year | February 29 days

Using Python Check Leap Year | February 29 days

Today we will discuss how to know which year is leap or February is 29 days in Python. Basically a year have 365 days, each leap year have 366 days because additional day is added to February which is 29 days...

Sovary June 1, 2022 720
#Python 
How to Format Date and Datetime in Python

How to Format Date and Datetime in Python

This article will go to detail on Python how to format date in different format. I will explain and give planty examples using date format...

Sovary May 28, 2022 335
#Python 
Python - Check If a String End With Specific Text

Python - Check If a String End With Specific Text

We have a single sentence how can we check whether the string is end with specific word? in Python we can use endswith() method to check as string have particular suffix value. The endswith() is built..

Sovary May 28, 2022 348
#Python 
Python - Check If a String Starts With Specific Letter

Python - Check If a String Starts With Specific Letter

Today we will learn how to check if there is a string start with specific letter or word with different ways. Below examples would help guide you to approach the result...

Sovary May 28, 2022 603
#Python 
Python - Check If String Contains Only Letters

Python - Check If String Contains Only Letters

In Python to check whether if a string contain only alphabets we use isalpha() function on a string. isalpha() function is built-in string function which will returns as boolean value...

Sovary May 28, 2022 366
#Python 
Python - Remove All Duplicated Word in String

Python - Remove All Duplicated Word in String

This tutorial we will find out the way to remove duplicated words from given sentence in Python. We will check given string if there are duplicated word then we will remove from the string and return..

Sovary May 27, 2022 318
#Python