This preview shows page 1. Sign up to view the full content.
Unformatted text preview: count = count +1 return count def makeCaps(self): string = "" for ch in self.sent: string = string + ch + " " upstring = string.upper() return upstring def addPunc(self): string = "" for ch in self.sent: string = string + ch punc = string[0:] + '.' return punc myobject = Sentence("this is my string") m...
View Full Document
This document was uploaded on 12/14/2010.
- Fall '09