I'm fairly new to python and programming in general so bear with me please.
I'm attempting to create a function that will take a given string input and remove any of the spaces contained between the words.

My code as it stands now:

```
def convertName(oldName):
    newName = oldName
    while newName == oldName:
        newName = oldName.replace("  "," ",)
    return newName

name = str(input("Name ---- "))
newName = convertName(name)
print("Result --",newName)

```

Currently, all of my attempts to make this loop work have either resulted in the process only being done once, or an infinite loop. I understand that as soon as my loop runs the first time that newName is no longer equal to oldName so my while statement is now false. Any hints/tips would be much appreciated!!