Aarjvi Parekh
PRO
last month
Aarjvicountry asked

What are whitespaces?

Palistha Singh
Expert
last month

Whitespaces are just empty spaces in your text.

For example:

text = "  Hello  "

This has extra spaces before and after Hello.

Those extra spaces are called whitespaces.

We usually remove them to make the text look clean.

Python
This question was asked as part of the Learn Python Basics course.