Question: 
Write a function to replace all occurrences of spaces, commas, or dots with a colon in the given string by using regex.


Model's Code:
import re

def fill_spaces(s):
    return re.sub(r'[ ,.]', ':', s)



Sample Correct Code:
import re
def fill_spaces(text):
  return (re.sub("[ ,.]", ":", text))


Asserts:
assert fill_spaces('Boult Curve Wireless Neckband') == 'Boult:Curve:Wireless:Neckband'
assert fill_spaces('Stereo Sound Sweatproof') == 'Stereo:Sound:Sweatproof'
assert fill_spaces('Probass Curve Audio') == 'Probass:Curve:Audio'


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

Test 542 of 974: 400/542 (73.80073800738008%): success