Python - asking the user for a text and printing out specific number of times
<p>We've been doing python in school so the stuff that we've done so far is pretty basic but we got this homework and we're meant to ask the user to input a text and then a number and then print out the text the number of times the user requested.
I though it'd be something like this, </p>

<pre><code>text=input("Enter your text: ")
number=input("Enter the times you want the text to be printed: ")
for i in range (number):
    print (text)
</code></pre>

<p>But it doesn't work. Any help would be appreciated. It'd also help if the code was quite simple since we started doing python a couple of weeks ago.</p>

<pre><code>text=raw_input("Enter your text: ")
number=input("Enter the times you want the text to be printed: ")
for i in range(number):
    print (text)
</code></pre>

<p>This code is written in python2.7.
raw_input() take strings wherein input() take integers.</p>

python input range