OK.

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 :/)

If this is your problem then add at the very bottom of your file this sentence:

raw_input()

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

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 :))

Regards

Alberto




 Gaucho
>From: Feziwe Mpondo <[EMAIL PROTECTED]> >To: Alberto Troiano <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED], 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" <[EMAIL PROTECTED]> >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
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to