Girish Rao

What’s New in Python 3.9

Each year, volunteers from all over the world, work on improvements to the Python Language. The official Python 3.9 version was released on October 5, 2020. This version is an improvement made to Python 3.8. The official, detailed explanation of these improvements is available at the Python Website. This blog article attempts to explain these …

What’s New in Python 3.9 Read More »

Python’s NameError: name ‘xxx’ is not defined — How to Fix This Stupid Bug?

The Python interpreter throws the NameError exception if it encounters an undefined variable or function name. To fix it, you must figure out why the variable is not defined—the most frequent bugs are (1) to use the variable or function name in the code before it was defined, or (2) to misspell the name in …

Python’s NameError: name ‘xxx’ is not defined — How to Fix This Stupid Bug? Read More »

How To Eliminate All The Whitespace From A String?

In this article, you’ll learn the ultimate answer to the following question: How To Eliminate All The Whitespace From A String—on Both Ends, and In-Between Words? Summary: Use the string methods join(), split(), strip(), rstrip(), lstrip() and or replace()—in specific combinations—to remove any whitespace in a given string. The simplest way to remove all whitespaces …

How To Eliminate All The Whitespace From A String? Read More »