"""
Replace all whitespace in a string with '%20'
"""


"""
Replace all whitespace in a string with '%20'
"""

def replace(string):
    for i in string:
        string.replace("", %20)
    return string

Update 1.4_replace_whitespace.py