isspace()

All String methods
my_str.isspace()
Returns True if all chars in a string are white space , otherwise returns False
my_str='Welcome to plus2net'
print(my_str.isspace())      # Output is False 

my_str='  '
print(my_str.isspace())      # Output is True

my_str=' \n '
print(my_str.isspace())      # Output is True ( presence of line break \n)

my_str='  \t '              
print(my_str.isspace())      # Output is True ( presence of tab \t )

my_str=' com '
print(my_str.isspace())      # Output is False ( presence of string )


All String methods


Subscribe to our YouTube Channel here


Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com



    Post your comments , suggestion , error , requirements etc here





    Python Video Tutorials
    Python SQLite Video Tutorials
    Python MySQL Video Tutorials
    Python Tkinter Video Tutorials
    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2024 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer