Day 1 - Created a band name generator!
Main focus: - Print - Input - Variables
This commit is contained in:
parent
2bcf5d45f4
commit
52c595a0c9
1 changed files with 10 additions and 0 deletions
10
Day 1/band-name-generator.py
Normal file
10
Day 1/band-name-generator.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#1. Create a greeting for your program.
|
||||
print("Welcome to the band name generator!")
|
||||
#2. Ask the user for the city that they grew up in.
|
||||
city_name = input("What's the name of the city you grew up in?\n")
|
||||
#3. Ask the user for the name of a pet.
|
||||
_name = input("What's your pet's name?\n")
|
||||
#4. Combine the name of their city and pet and show them their band name.
|
||||
print("Your band name could be " + city_name + " " + pet_name + "!")
|
||||
#5. Make sure the input cursor shows on a new line, see the example at:
|
||||
# https://band-name-generator-end.appbrewery.repl.run/
|
||||
Loading…
Add table
Add a link
Reference in a new issue