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.

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…

How to Open Files in Python

How to Open Files in Python

To read information saved in a file, your Python program first needs to open it. Python’s built-in open() function opens a path and returns a file object your program can use to read or write data. This article shows how…

Python String islower() Function

lower function in Python: Use str.lower()

Working with letter case in Python can mean changing text or checking how it is already cased. The str.lower() method returns a lowercase copy of a string, while islower() reports whether its cased characters are lowercase. I’ll show how to…