Question: 
Write a function to remove all whitespaces from the given string using regex.


Model's Code:
import re

def remove_whitespaces(s):
    return re.sub(r'\s+', '', s)



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


Asserts:
assert remove_whitespaces(' Google    Flutter ') == 'GoogleFlutter'
assert remove_whitespaces(' Google    Dart ') == 'GoogleDart'
assert remove_whitespaces(' iOS    Swift ') == 'iOSSwift'


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

Test 451 of 974: 329/451 (72.9490022172949%): success