This is my daily journal of learning Python via the course 100 Days of Code: The Complete Python Pro Bootcamp for 2022 by Dr. Angela Yu on Udemy.

Day 1 highlights follow but first some background with a dash of drama:

Background (with a dash of drama)

I was a little sad when NLB announced the they were replacing LinkedIn Learning with Udemy Business as I was going through a course on LinkedIn.

But being a closet optimist, I decided to browse through Udemy and found 100 Days of Code: The Complete Python Pro Bootcamp for 2022 by Dr. Angela Yu.

I tested the waters and it seemed like a good fit for a code novice like me.

I decided to start on January 1, 2022. What better day, right?

WRONG!

Starting on 30 Dec 2021, I came down with high fever. Did two Covid-19 ART tests and both were negative. Awaiting the result of the PCR test which by God’s grace will be negative too. Amen!

Update: My PCR test for Covid-19 was negative too… Hallelujah!

But anyway, I was feeling a little better on January 1, 2022 so I decided to grit my teeth and persevere.

Day 1 – Beginner – Working with Variables in Python to Manage Data (Highlights)

This day was supposed to take 1 hour 30 minutes but for me it took like 4 hours. I blame that on my meds and not at all on my lack of skills! 😏

This module had the following downloadables:

  • Course Pledge (sounds serious)
  • 12 Rules to Learn to Code eBook
  • 100 Days of Python Check Off Posters
  • Coding Course Notebook
  • Wallpapers (moooootivaaaaatiiiioooon!)
  • Syllabus
  • Syntax Cheat Sheet

Dr. Angel Yu explained in detail the course goals as well as the goals for Day 1. She introduced the replit interface (thank God did not have to struggle with installing clunky software on the local computer) and Coding Rooms where we would do the exercises and submit them for automated grading.

Coding Rooms Grading
My grades for Day 1

The first lesson and interactive exercise was all about printing in Python. As you can see from the image on top, yours truly needed 4 attempts to get the code right. 💪

print('Day 1 - Python Print Function')
print('The function is declared like this:')
print("print('what to print')")

Just when I thought I was getting the hang of things, I stumbled badly on the next lesson on manipulating strings and the debugging exercise. I needed 8 attempts. 😮‍💨

The code had tricky bugs and I was on medication 💊 but I got it done.

#Fix the code below 👇

print("Day 1 - String Manipulation")
print('String Concatenation is done with the "+" sign.')
print('e.g. print("Hello " + "world")')
print("New lines can be created with a backslash and n.")

I was back on par with the 3rd lesson and exercise on python input with a decent 4 attempts. Actually, I used a variable (bonus points for me) though it wasn’t covered to this point.

#Write your code below this line 👇
#Write your code below this line 👇
a = input('What is your name?')
print (len(a))

The 4th and final exercise was on Python variables and Angela went through in fair details on the best practices on Python variables.

The exercise was about doing a switcheroo with two variables. Angela said it was a hard problem but I got it in 2 attempts 😊

# 🚨 Don't change the code below 👇
a = input("a: ")
b = input("b: ")
# 🚨 Don't change the code above 👆

####################################
#Write your code below this line 👇
temp = a
a = b
b = temp



#Write your code above this line 👆
####################################

# 🚨 Don't change the code below 👇
print("a: " + a)
print("b: " + b)

Day 1 Project: Band Name Generator

Pleased to say, I did this without any hiccups. Here’s my code:

#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 ("Which city did you grow 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 is: " + city +" "+ pet_name)

#5. Make sure the input cursor shows on a new line, see the example at:
#   https://replit.com/@appbrewery/band-name-generator-end

So that’s my adventure with Day 1 of 100 Days of Code: The Complete Python Pro Bootcamp for 2022. If you are a fellow student further along the way or someone who’s thinking of this course, let’s connect on Twitter @TheOnlyDGS (I’ve no followers and am only following Dr Angela Yu) so let’s connect.

Facebook Comments