Create a function in Python to determine whether a given string contains any whitespace character.
"Hello World"
def hasWhitespace(string):
 for c in string:
  if c.isspace():
   return True
 return False

print(hasWhitespace("Hello World"))