I need a string consisting of a repetition of a particular character. At the Python console, if I type:
n = \'0\'*8
then n gets
n
I could bet you're using raw_input() to read the value which multiplies the string. You should use input() instead to read the value as an integer, not a string.
raw_input()
input()