I want to remove the whitespace at the end of 'Joe'
name = 'Joe'
print(name, ', you won!')
>>>Joe , you won!
I tried the rstrip method, but it didn't work
name='Joe'
name=name.rstrip()
print(name, ', you won!')
>>>Joe , you won!
My only solution was to concatenate the string
name='Joe'
name=name+','
print(name,'you won!')
>>>Joe, you won!
What am I missing?