Miguel Brito
miguendes's blog

miguendes's blog

Miguel Brito

472 followers

Machine Learning Engineer - Technical Writer-ish - Interested in Software Testing, Best Practices, Scalability, and Python.

Blog Author Picture

Subscribe to my newsletter and never miss my upcoming articles

How to Compare Two Strings in Python (in 8 Easy Ways)

Nov 28, 202111 min read

Comparing strings is a fundamental task common to any programming language. When it comes to Python, there are several ways of doing it. The best one will always depend on the use case, but we can narrow them down to a few that best fit this goal. In...

How to Compare Two Strings in Python (in 8 Easy Ways)
Pylint: How to fix "c0209: formatting a regular string which could be a f-string (consider-using-f-string)"
Python pathlib Cookbook: 57+ Examples to Master It (2021)
How to Disable Autouse Fixtures in pytest
15 Easy Ways to Trim a String in Python
How to Choose Between isdigit(), isdecimal() and isnumeric() in Python