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:
В 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
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
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
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:
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
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,
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