30-Day Coding Challenge Extras
Makeup Day 4 — Challenge Completed!
Countdown to 100 Stories: ⏱️(1 story left)
It’s been almost a week since I completed my 30-day coding challenge. Unfortunately, I disappeared from Medium these past few days without writing my last report. So, here it is:
Report for Makeup Day 4
On my last makeup day for coding, I simply played around with functions
, parameters
,arguments
, and the *args
keyword.
Talking about the *args
, it’s a keyword that allows a Python function to accept an unspecified number of arguments, like this:
def my_function(*args):
for arg in args:
print(arg)
my_function(1, 2, 3, 'hello')
'''
OUTPUT:
1
2
3
hello
'''
My makeup day 4 wasn’t action-packed as I didn’t discover anything new. Despite that, the fact I opened my IDE and wrote some functions made it a successful coding day.
With that, I can say:
My 30-Day Coding Challenge is Completed!
Here’s a summary of my journey:
- Day 1: I planned and reviewed a random word generator
- Day 2: I improved my first Python project
- Days 3 & 4: I Faced external factors that affected my progress
- Day 5: Discovered the floor division operator
- Day 6: Discovered a string method
- Days 7 & 8: Goofing off by writing 2 scripts
- Day 9: Looking at old scripts
- Days 10 & 11: I experienced my first setback
- Days 12 & 13: Discovered some escape characters
- Days 14 & 15: Highlight on slicing
- Days 16 & 17: More Python hacks
- Days 18, 19, & 20: Highlight on sets and setbacks
- Days 21, 22, & 23: Highlight on bools
- Days 24, 25, & 26: Fell ill
- Days 27, 28, & 29: Highlight on break statement
- Day 30: I met a turtle
- Makeup Days 1, 2, & 3: Highlight on nested loops and ternary operator
- Makeup Day 4: Highlight on
*args
keyword and summary of previous days.
While I didn’t achieve as much as I wanted in my challenge, coding consistently for days really helped my progress and habit. Thanks to this, I have several hacks stored in my coding brain.
My challenge may be over but my learning journey isn’t. Thanks for reading till this point and see you soon…