Re: write your replace function in python

2017-12-14 Thread Steve D'Aprano
On Thu, 14 Dec 2017 09:08 pm, ayaskant.mantu...@gmail.com wrote: > Hi, > > I want to replace the spaces in a sting with hyphen with my own replace > function or with using the pre-defined replace function. Can anybody help me > with this issue??? new_string = "string with spaces".replace(" ", "h

Re: write your replace function in python

2017-12-14 Thread Chris Angelico
On Thu, Dec 14, 2017 at 9:08 PM, wrote: > Hi, > > I want to replace the spaces in a sting with hyphen with my own replace > function or with using the pre-defined replace function. > Can anybody help me with this issue??? > Ahh, the old "I want to" as a prefix for a homework assignment. Start

write your replace function in python

2017-12-14 Thread ayaskant . mantu111
Hi, I want to replace the spaces in a sting with hyphen with my own replace function or with using the pre-defined replace function. Can anybody help me with this issue??? Thanks -- https://mail.python.org/mailman/listinfo/python-list