From mboxrd@z Thu Jan 1 00:00:00 1970 From: Puneeth Subject: Re: OT: Python help Date: Tue, 20 Jul 2010 16:50:29 +0530 Message-ID: References: <97ED60B0-D01C-47DB-9B5E-10F1B39E3892@uva.nl> <83vd8a1kkv.fsf@yahoo.it> <606EFD47-1329-43F8-8496-1A0B0A2390E9@uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=51033 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ObAsW-00007b-JT for emacs-orgmode@gnu.org; Tue, 20 Jul 2010 07:20:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ObAsV-0001bu-Jh for emacs-orgmode@gnu.org; Tue, 20 Jul 2010 07:20:52 -0400 Received: from mail-px0-f169.google.com ([209.85.212.169]:44551) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ObAsV-0001bQ-FG for emacs-orgmode@gnu.org; Tue, 20 Jul 2010 07:20:51 -0400 Received: by pxi7 with SMTP id 7so5425018pxi.0 for ; Tue, 20 Jul 2010 04:20:50 -0700 (PDT) In-Reply-To: <606EFD47-1329-43F8-8496-1A0B0A2390E9@uva.nl> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-org list On Tue, Jul 20, 2010 at 4:43 PM, Carsten Dominik wrote: > > On Jul 20, 2010, at 1:03 PM, Giovanni Ridolfi wrote: > >> Carsten Dominik writes: >> >> >>> a python question: =C2=A0How do I prefix every line in a multiline stri= ng >>> with a string. =C2=A0For example, I would like to add "> " before all l= ines >>> in a string.... >> >> how about replacing "\n" with "\n > " ? > > Please show me the full line of code, I am currently editing a python scr= ipt > without any knowledge of python... my_string =3D "Hello\nWorld" my_new_string =3D my_string.replace("\n", "\n> ") HTH, Puneeth