Question: 
Write a function to remove multiple spaces in a string.


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



Sample Correct Code:
import re
def remove_spaces(text):
 return (re.sub(' +',' ',text))


Asserts:
assert remove_spaces('python  program')==('python program')
assert remove_spaces('python   programming    language')==('python programming language')
assert remove_spaces('python                     program')==('python program')


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

Test 892 of 974: 686/892 (76.90582959641256%): success