Posts for Python

Python is an interpreted, high-level, general-purpose programming language
Deven
Deven wrote

How To Convert Python String to Int and Int to String

Sometimes we may need to convert a variable of type String to Integer and from Integer to String. Python provides a built-in method to do this exercise. The methods are int() to convert String to Integer and str() to convert Integer to String. int() methond to convert String to Integer str() method to convert Integer […]

August 21, 2020 in Python & Snippets
Deven
Deven wrote

Python upper(), lower(), isupper(), and islower() Methods example

Sometimes we may need to Convert String characters to uppercase and lowercase, for this purpose Python provides us two methods: The upper() string method converts all of the characters to uppercase The lower() string method converts all of the characters to lowercase upper() string method example code output lower() string method example code output isupper(), […]

July 25, 2020 in Python & Snippets
Deven
Deven wrote

Python Trim String Example | rstrip(), lstrip(), strip() Function

Sometimes we may need to Trim String, whitespace characters from the left side, right side, or both sides of a string. For this purpose Python provides three methods to Trim String. The strip() string method will return a new string without any whitespace characters at the beginning or end. The lstrip()  method will remove whitespace characters from the left […]

July 25, 2020 in Python & Snippets
Deven
Deven wrote

7 Python coding practices every developer should know

With Python now a recognized language applied in diverse development arenas, it is more than expected for there to be some set of practices that would make for the foundation of good coding in it. To take advantage of the numerous third-party libraries, one would definitely have to put together a streak of applying the industry-recognized python coding […]

July 21, 2020 in Python

Python map() – Explained with example

Python includes a built-in method of applying a specific function to all elements within an iterable object: map(). The Python map() method executes a function on all elements within an iterable object, such as a list, and returns map objects. The item is sent to the function as a parameter. Syntax Map() Parameter function: map() […]

May 4, 2020 in Code examples & Python
Afolayan
Afolayan wrote

Recursion Explained In Python

If you have been programming with Python, chances are you’ve come across the term recursion. Chances are also that you might probably find this confusing at first, not to worry, this article should clear things up for you. Recursion is a very powerful programming concept that provides a simple, (neater in most cases), concise and […]

February 20, 2020 in Python & Tutorials