how to expel a specific part of a srting python code example Example: python remove string from string s = 'ab12abc34ba' print(s.replace('ab', ''))