Watch Me Code 1: Say My Name

This program will say your name a number of times.


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

i = 1
while i <=times:
    print(name)
    i = i + 1


what is your name: Bob
How many times would you like me to say your name Bob? 4
Bob
Bob
Bob
Bob

In [ ]: