Answers for "how to remove things from string pyhton"

13

python remove string from string

s = 'ab12abc34ba'
print(s.replace('ab', ''))
Posted by: Guest on September-12-2020
0

how to remove a string in python

Food = ["Apple", "lemon", "Mango"]
Food.append("Cake")
Food.remove("lemon")
for x in Food:
    print(x)
Posted by: Guest on February-24-2022

Code answers related to "how to remove things from string pyhton"

Python Answers by Framework

Browse Popular Code Answers by Language