Re: [Tutor] Input() is not working as expected in Python 3.1

2010-02-15 Thread Yaraslau Shanhin
Thanks for try but print without () does not work at all, at least in newer version of python (3.1) Anyway source of problem is now discovered: Komodo Edit tool, in Python shell (IDLE) everything works fine. Perhaps anyone has any ideas why? On Mon, Feb 15, 2010 at 10:02 PM, Grigor Kolev wrote:

Re: [Tutor] Input() is not working as expected in Python 3.1

2010-02-15 Thread Grigor Kolev
В 10:06 -0500 на 15.02.2010 (пн), bob gailer написа: > Yaraslau Shanhin wrote: > > > Hello All, > > Hello. > > Suggestion for future questions - just include enough to identify the > problem. We don't need to know that this is from a tutorial or what the > exercise is. Also (at least I prefer

Re: [Tutor] Input() is not working as expected in Python 3.1

2010-02-15 Thread Rich Lovely
On 15 February 2010 15:15, Yaraslau Shanhin wrote: > Code: > text = str(input("Type in some text: ")) > number = int(input("How many times should it be printed? ")) > print (text * number) > Output: > Type in some text: some > How many times should it be printed? 5 > Traceback (most recent call la

Re: [Tutor] Input() is not working as expected in Python 3.1

2010-02-15 Thread Yaraslau Shanhin
Code: text = str(input("Type in some text: ")) number = int(input("How many times should it be printed? ")) print (text * number) Output: Type in some text: some How many times should it be printed? 5 Traceback (most recent call last): File "test4.py", line 2, in number = int(input("How ma

Re: [Tutor] Input() is not working as expected in Python 3.1

2010-02-15 Thread bob gailer
Yaraslau Shanhin wrote: > Hello All, Hello. Suggestion for future questions - just include enough to identify the problem. We don't need to know that this is from a tutorial or what the exercise is. Also (at least I prefer) plain text without formatting or color. Sufficient therefore is:

Re: [Tutor] Input() is not working as expected in Python 3.1

2010-02-15 Thread Dave Angel
Yaraslau Shanhin wrote: Hello All, I am working with Python tutorial in wiki and one of the exercises is as follows: Ask the user for a string, and then for a number. Print out that string, that many times. (For example, if the string is hello and the number is 3 you should print out hellohello

Re: [Tutor] Input() is not working as expected in Python 3.1

2010-02-15 Thread Wayne Werner
On Mon, Feb 15, 2010 at 8:23 AM, Yaraslau Shanhin < yaraslau.shan...@gmail.com> wrote: > Hello All, > > I am working with Python tutorial in wiki and one of the exercises is as > follows: > > Ask the user for a string, and then for a number. Print out that string, > that many times. (For example,

[Tutor] Input() is not working as expected in Python 3.1

2010-02-15 Thread Yaraslau Shanhin
Hello All, I am working with Python tutorial in wiki and one of the exercises is as follows: Ask the user for a string, and then for a number. Print out that string, that many times. (For example, if the string is hello and the number is 3 you should print out hellohellohello.) Solution for this