Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 15 Online
OpenStudy (anonymous):

How do you delete a character in a string? For example, if I wanted to delete x in the string 'erxy'.

OpenStudy (bibby):

In python you can do something like newstr = oldstr.replace("x", "") to replace ALL occurrences of x in oldstr

OpenStudy (zeeporo):

the original string cannot be changed, strings are immutable.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!