if you are expecting “.google.” then none of these options will work but this might:
word='www.wgoowglew.cowm'
print '.' + word.split('.')[1].replace('w', '') + '.'
solved Remove lowercase letters from a string in python
if you are expecting “.google.” then none of these options will work but this might:
word='www.wgoowglew.cowm'
print '.' + word.split('.')[1].replace('w', '') + '.'
solved Remove lowercase letters from a string in python