Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
noun = input("An Occupation: ")
animal = input("An Animal: ")
name = input("A Five Letter Name: ")
# name2 = input("Name in ALl Capitals With Spaces Inbetween Each Letter: ")
name2 = name.upper()
name2 = name2[0]+"-"+name2[1]+"-"+name2[2]+"-"+name2[3]+"-"+name2[4:]

print ("there was a " + noun + " who had a " + animal + " and " + name + " was his name-o")
print (name2.replace(" ", "-", 4))
print (name2.replace(" ", "-",4))
print ("and " + name +" was his name-o")
Python 3.6.1 (default, Dec 2015, 13:05:11) [GCC 4.8.2] on linux