Question: 
Write a function to remove all whitespaces from a string.


Model's Code:
def remove_all_spaces(s):
    return ''.join(s.split())



Sample Correct Code:
import re
def remove_all_spaces(text):
 return (re.sub(r'\s+', '',text))


Asserts:
assert remove_all_spaces('python  program')==('pythonprogram')
assert remove_all_spaces('python   programming    language')==('pythonprogramminglanguage')
assert remove_all_spaces('python                     program')==('pythonprogram')


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 800 of 974: 609/800 (76.125%): success