Tag Python found of 19 results

Python Using While Loops

Python Using While Loops

Generally in programming loops are used to executed block of code repeatedly as long as condition is true. In this article, you will learn how to use a while loop and while loop with else statement in Python...

Sovary June 4, 2022 516
#Python 
Python How to Use If-Else Statement

Python How to Use If-Else Statement

How to create decisions in a Python program using different forms of if-else statement multiple condition and explain step by step with examples from scratch...

Sovary June 4, 2022 528
#Python 
Python Numbers and Type Conversions (Casting)

Python Numbers and Type Conversions (Casting)

We will learn different numeric in Python and we will explain how to convert from string to numeric . Python have three built-in numeric types integer, float-point number and complex numbers. Python..

Sovary June 2, 2022 451
#Python 
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 896
#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 466
#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 509
#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 1.05K
#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 497
#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 438
#Python