Day One Learnings
Starting the 100 Days of Code Journey
Today, I enrolled in the 100 Days of Code course on Udemy, led by the esteemed instructor from the App Brewery. My goal is to complete this course and earn a certificate to accompany all my projects.
Python Fundamentals Review
On the first day, I revisited the fundamentals of Python, refreshing my knowledge on print statements, inputs, and variables. Though seemingly small, mastering these skills is crucial for problem-solving.
Utilizing the len() Function
During a project, I discovered the usefulness of the len() function. I created a program that calculates the number of characters in a word, envisioning its utility for tasks like analyzing essay lengths.
name = input("What is your name? ")
length = print(len(name))
print(length)
PythonOutput:
Creating a Random Band Name Generator
To cap off day one, I tackled a project: a Random Band Name Generator. Following given criteria, I crafted a program that combines the user’s city and pet name to generate a unique band name.
#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 grow up in?" )
#3. Ask the user for the name of a pet.
pet_name=input("What was the name of your childhood pet? \n")
#4. Combine the name of their city and pet and show them their band name.
print("Your band name will be: "+ city +" "+ pet_name)
#5. Make sure the input cursor shows on a new line:
PythonOutput:
Conclusion
Day one of the 100 Days of Code challenge was filled with revisiting Python basics, exploring practical functions, and building a fun project. I’m excited for the journey ahead and the skills I’ll acquire along the way.