In Class Code for 2/26

def main():
print(“This program generates your superhero name”)

first = input(“Please enter your first name: “)
street = input(“Please enter the name of the street you grew up on: “)

superName = first[:4] + street[2:5]

print(“Your superhero name is:”, superName)

main()

def main():
firstName = [“Golden”, “Black”, “Heavenly”, “Big”, “Flying”, “White”, “Red”, “Long”, “Thousand”, “Straw”, “Star”, “Green”, “Wild”, “Silver”, “First”, “Iron”, “Ice”, “Steel”, “Death”, “Royal”, “Imperial”, “Sea”, “Fire”, “Rock”, “Blue”, “Sleeping”]
lastName = [“Lion”, “Knight”, “Sword”, “Nose”, “Beard”, “Axe”, “Hair”, “Dragon”, “Phoenix”, “Leg”, “Hands”, “Hat”, “Hunter”, “Wolf”, “Demon”, “Tiger”, “Fist”, “Bear”, “Hammer”, “Breaker”, “Cannon”, “Bull”, “Monkey”, “Island”, “Pheasant”, “Dog”]

usrFirst = eval(input(“Please enter the number of the first letter of your first name where a \= 1”))
usrLast = eval(input(“Please enter the number of the first letter of your last name where a \= 1″))

pirateName = firstName[usrFirst – 1] + ” ” + lastName[usrLast – 1]

print(“Your One Piece pirate name is:”, pirateName)

main()

def main():
myVar = “A, long day it was!”

myVar.split()

main()

Comments are closed.