Tag Python found of 16 results
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 720This 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 335We 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 348Today 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 603In 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 366This 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