#3
Hi,
Day 3 is finally done.
Today was a fun session where I didn't even realize how 2 hours passed by.
"Everyday do something that makes you uncomfortable"
- David Goggins
Learning Today
Today started with learning how to implement a link list in python3, then progressed to learning about python3 functions like reversed(), divmod(), zip(), and cycle().
As operations on lists and tuples are going to get more detailed, having working understanding of the itertools library will come in handy so looking forward to experiment with it in the coming days.
Key Takeaways :
1. Reading documentation does not really help if there is not a clear and concise usage in mind
Errors encountered :
1. UnboundLocalError : variable is referenced before assignment
Why it was encountered ?
While looping overlink list elements, I was trying to add assignment to a variable with same name. Python working under the hood revealed that this is a common error and can be resolved by declaring the variable global or nonlocal at the start within the function definition


Comments
Post a Comment