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

Anthony Beckford🚀 - Nov 10 '20 - - Dev Community

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
. . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player