Okay Well i'm kinda new here
First Post xD
Well i recently entered in an online programming contest and i has since finished the question i went extremly badly on was when they wanted a program that wanted to make a google whackblatt, I wouldn't be able to explain what it is but i know how i though i should do it.
It wanted me to make a program that asked for a string to repeat then how many times to repeat it. I think i have tried everything but they won't multiply
Here's the code i used:
resp=raw_input ("What is the string to repeat?" )
times=raw_input("How many times?")
finished=resp*name
print finished
and the error message is:
What is the string to repeat?test
How many times?3
Traceback (most recent call last):
File "C:/Python25/Googlewhackblatts2.py", line 3, in <module>
finished=resp*name
NameError: name 'name' is not defined
Thanks xD
PS I'm kinda new at programming so step by step instructions would be a help.