I want to replace word in a python by using replace() function but causing error?

Viewed 34
myfood = 'maggie', 'noodle'

myfood.replace('maggie' , 'e)

AttributeError: 'tuple' object has no attribute 'replace'

0 Answers
Related