DEV Community

loading...
Cover image for My #100daysOfCode Challenge - Python 100 projects in 100 days - Journal Entry

My #100daysOfCode Challenge - Python 100 projects in 100 days - Journal Entry

abeck617 profile image Anthony Beckford🚀 ・1 min read

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:

  1. Printing using the print()
  2. How to use the input() function
  3. Debugging and commenting
  4. String Manipulation
  5. Commenting

Discussion (3)

pic
Editor guide
Collapse
gravesli profile image
gravesli

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~

Collapse
abeck617 profile image
Anthony Beckford🚀 Author

Yeah I will definitely look into it this week and get back to you!! Thank you!

Collapse
gravesli profile image
gravesli

Hi, thanks for your reply. Would you give me a star on GitHub? because my project isn't active. ^.^