Error in doctest Exercise 14.11.8

Bug #1436179 reported by Brendan McCane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Practical Programming in Python
Fix Released
Undecided
Unassigned

Bug Description

def myreplace(s, old, new): """
   >>> myreplace("Mississippi", "is", "I")
   'MIsIsippI'
   >>> s = "I love spom! Spom is my favorite food. Spom, spom, spom, yum!"
   >>> myreplace(s, "om", "am")
   'I love spam! Spam is my favorite food. Spam, spam, spam, yum!'
   """

The final 'I' in 'MIsIsippI' should be an 'i'

Brendan McCane (mccane)
Changed in practical-programming:
status: New → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.