Python Band Name Generator

Muhammad Ghazy
Jan 22, 2023

--

print("Welcome to the Band Name Generator.")
street = input("What's the name of the city you grew up in?\n")
pet = input("What's your pet's name?\n")
print("Your band name could be " + street + " " + pet)

This code is a simple program that generates a band name. When run, it first prints the string “Welcome to the Band Name Generator.” Then, it prompts the user to enter the name of the city they grew up in and assigns the value to the variable “street”. It then prompts the user to enter their pet’s name and assigns the value to the variable “pet”. Finally, it concatenates the two variables and prints the string “Your band name could be” followed by the concatenated value.

--

--