+ 2
How i can do in python?
x=('mango') I want to remove g from mango without use index method how i can do that.
1 Answer
+ 5
The shortest way is to use a replace method.
>>> x = 'mango'
>>> x.replace('g','')
'mano'
x=('mango') I want to remove g from mango without use index method how i can do that.