
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
String Whitespace in Python
In this tutorial, we are going to learn about the string.whitespace.
The string whitespace is pre-defined in the string module of Python3. If contains space, tab, linefeed, return, formfeed, and vertical tab.
Example
# importing the string module import string # printing a string print("Hello") # whitespace printing print(string.whitespace) # printing a string print('tutorialspoint')
Output
If you run the above code, then you will get the following result.
Hello tutorialspoint
Conclusion
If you have any doubts in the tutorial, mention them in the comment section.
Advertisements