Watch Me Code 2: Say My Name

Same program as WMC 1, but with a for loop.


In [1]:
name = input("What is your name? ")
times = int(input("How many times would you like me to say your name %s? " % name))
for i in range(times):
    print(name)


What is your name? bob
How many times would you like me to say your name bob? 3
bob
bob
bob

In [ ]: