Check for Spaces in Strings

This function detects if a Python string includes any spaces and returns a boolean result.

Sometimes, while writing a document or text, one could unwittingly introduce extra spaces. We are required to write a function in Python named as `check_spaces()`, that takes one argument `strng`, which is a string. If `strng` contains any spaces, it returns `True`; if it does not contain any spaces, it returns `False`. ### Parameters - `strng` (str): The string within which the function will search for spaces. ### Return Value - Returns `True` if `strng` contains any spaces; - Returns `False` if `strng` does not contain any spaces. ### Examples ```python # No spaces in 'hello' check_spaces('hello') # False # Space after comma in 'hello, world' check_spaces('hello, world') # True # Just one space ' ' check_spaces(' ') # True # No space in ',./!@#' check_spaces(',./!@#') # False ```