Bingo was his name-o!

Bingo was his name- o! was the first task of week 3. The task required the user to enter a dogs name for the input and print it in upper case and separated like the song using the users input.
For this to work I needed to loop through the variable (which in this case was the dog's name input) and print it in the for in upper case. Lastly I printed " And Bingo was his name-o!" The task wasn't to hard to complete as it was simple to follow the information given.

name = input("Dog's name: ")
for c in name:
  print(c.upper())

print("And",name,"was his name-o!")

No comments:

Post a Comment