Here's the thing, I wanna change some wrong words from a text file like this:

"I am a studaet." -> "I am a student."

I have tried to use this command:
str = "I am a studaet."
newstr = str[0:8] + "ent"
print newstr


But the system said     TypeError: 'type' object is unsubscriptable

What's wrong?

-- 
Shurui Liu (Aaron Liu)
Computer Science & Engineering Technology
University of Toledo
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to