There are two main ways to sort a list of strings in Python - using the built-in sort() function and the built-in sorted() function. We'll discuss how to use each function in today's post and the...
Posts by Jamie
In today's post, we'll learn 2 different ways to compare if two strings are equal in Python. We'll also learn to do other forms of comparisons (such as whether one string is greater than...
Today, we have another programming challenge from Leetcode: https://leetcode.com/problems/permutations/. The Challenge This challenge requires us to write a function called permute() that...
Python Programming Challenge 13: Check for Valid Parentheses using Python
Today, we are back with another Python Programming Challenge from Leetocde: https://leetcode.com/problems/valid-parentheses/. The Challenge This challenge requires us to write a function called...
In today's post, we'll discuss the count() function in Python. We'll also discuss alternatives to the count() function, which are more efficient if we want to count the occurrences of multiple...
In today's post, we'll learn 2 different ways to find the length of a list in Python. The length of a list refers to the number of elements in the list. We'll also work on a practice question that...