Ask your own question, for FREE!
Mathematics 13 Online
OpenStudy (anonymous):

In python how do i create a script that asks for a name and then repeats the name 20 times over

OpenStudy (dan815):

same thing as before but add for loop

OpenStudy (dan815):

def main(): name=raw_input('enter your name: ') for i in range(1,20): print(name) main()

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!