Category Python Programming

Python is one of the most widely used programming languages. It’s getting a lot of popularity these days because of so many Python frameworks in IoT, Machine Learning, Deep Learning, and Artificial Intelligent space.

These Python Tutorials will help you in getting mastery over the Python Programming. The tips and tricks shared by us will enable you to write pythonic code with high performance, reusability, readability, and maintainability.

Python String endswith() Function

Python String endswith() Function

A text value may need to match one expected ending or one of several alternatives. Python’s str.endswith() method checks whether a string ends with the supplied suffix and returns True or False. This article explains how to pass several suffixes…

How to Split a String in Python

How to Split a String in Python

To turn a sentence into separate words, you can split its text at whitespace. Python’s str.split() returns the pieces as a list of strings and can also use a separator you specify. I’ll show how to choose a separator and…

Python Empty List: How to Check It

Python Empty List: How to Check It

A condition can tell you whether a Python list has items. Python conditions use an object’s truth value, and empty lists are false. This article shows how to check whether a list is empty and how to handle None when…

How to Square in Python: List Values

How to Square in Python: List Values

If you have numbers in a Python list, you can make a corresponding list of their squares. Squaring multiplies each number by itself, and a list comprehension collects those results in a new list. I’ll show how to build that…