Hey everyone! I will be starting this #100daysofCode journey by diving deep into python! Anyone who would like follow along to hone your python skills check this out! I will be documenting every project step-by-step.
Day one — Brand Name Generator
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 = input("What city did you grew up in? \n")
3. Ask the user for the name of a pet.
pet_name = input("What is the name of your pet? \n")
4. Combine the name of their city and pet and show them their band name.
print("Your band name could be " + city + " " + 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/
Output:
Welcome to the Band Name Generator!
What city did you grew up in?
Boston
What is the name of your pet?
shiloh
Your band name should be Boston Shiloh
Key Takeaways:
- Printing using the print()
- How to use the input() function
- Debugging and commenting
- String Manipulation
- Commenting
Top comments (3)
I think you are great! i just want to discuss tech with Python developer.
I built a display machine state using Python3 with Flask!
Flask State Github:github.com/yoobool/flask-state
Should i can get some improvement suggestions from you? Thanks~
Yeah I will definitely look into it this week and get back to you!! Thank you!
Hi, thanks for your reply. Would you give me a star on GitHub? because my project isn't active. ^.^