Create String Buffer Python Programming