← All freeCodeCamp videos

How to check if a string only contains whitespace in Python

12,877 views 80 likes 2025-12-19 0:26 Watch on YouTube ↗ freeCodeCamp ↗
Computer SciencePython

Chapters

No chapter markers in this video's description.

Show the creator's full description
Do you know how to check if a string only contains whitespace in Python? The .isspace() method is perfect for this. Estefania shows you how it works.

Description and video by freeCodeCamp.org. This page is an independent companion view; the video is embedded from YouTube.