<html><div style='background-color:'><P>OK.</P>
<P>I'm assuming that you're writing a .py document and you want it to run by double-clicking it in the shell, right??? And you can't see the output of your prog????(that's my problem to understand English, sorry :/)</P>
<P>If this is your problem then add at the very bottom of your file this sentence:</P>
<P>raw_input()</P>
<P>Your program will wait until you press any key to finish. If you want to make it fancy then put a string to show inside the parenthesis</P>
<P>Let me know if this solve your problem and if that's not the problem then sorry for misunderstanding you and I beg you post again a little more specific (that's only applied to me :))</P>
<P>Regards</P>
<P>Alberto<BR><BR></P><BR><BR><BR>
<DIV><IMG height=12 src="http://graphics.hotmail.com/emvamp.gif" width=12> Gaucho</DIV>>From: Feziwe Mpondo <feziwe@sanbi.ac.za> >To: Alberto Troiano <albertito_g@hotmail.com> >CC: jcahl@psci.net, tutor@python.org >Subject: Re: [Tutor] Python backwards program >Date: Wed, 13 Apr 2005 17:14:46 +0200 > >Alberto Troiano wrote: > >>You can do this: >> >> >>> word=raw_input("Type the word: ") >>Type the word: Kokiri Forest >> >>> print word >>Kokiri Forest >> >>> print word[::-1] >>tseroF irikoK >> >>But I saw that this gave you a hard time so this is an alternate >>longer way: >> >> >>> backword="" >> >>> counter=len(word) >> >> >>> while counter!=0: >> backword+=word[counter-1] >> counter-=1
>> >> >>> print backword >>tseroF irikoK >> >>So choose the one you want and feel free to ask in case of any >>doubt >> >>Regards >> >>Alberto >> >> >> Gaucho >> >From: "Jim and Laura Ahl" <jcahl@psci.net> >To: >><tutor@python.org> >Subject: [Tutor] Python backwards program >> >Date: Tue, 12 Apr 2005 20:05:41 -0500 > >I am very new to >>programming and I have an assignment to have a raw_input string >>that is inputted by the user and then is printed backwards. Can >>anyone help me? I can get it to print regular but backwards in not >>working. > >Thank You >Jim >> >_______________________________________________ >Tutor maillist - >>Tutor@python.org >http://mail.python.org/mailman/listinfo/tutor >>
>>------------------------------------------------------------------------ >> >>_______________________________________________ >>Tutor maillist - Tutor@python.org >>http://mail.python.org/mailman/listinfo/tutor >> >> >i am able to type, what i can't seem to do is seeing it print or >executing the command on the shell window </div></html>