Python Programming: Lesson 71 - Constructor Reference Variables

Опубликовано: 14 Октябрь 2024
на канале: youmils03
26
0

PLEASE SUBSCRIBE!!!

This video replaces    • Python Programming: Lesson 71 (OLD, S...  

In the previous lesson (   • Python Programming: Lesson 70 - Pass ...  ), we had a chance to discuss a phenomenon called pass by value. Here, a variable fails to be updated because only a copy of its value was brought into a function. Solutions:
1. Attach the variable to be changed to an instance of a class and an instance method to increment or change it
2. Return a new value rather than constructing a void method
3. Apply the method with a list rather than a standalone variable

In this lesson, we get a good opportunity to review frozen dictionaries, inheritance, the call magic method, and other object-oriented fundamentals. This is a slower-paced conclusion to the Python curriculum.

0:50 Conceptual Overview (import, json, frozen dictionaries)
2:57 Review: Frozen Dictionaries
8:52 Review: Inheritance and Callable Instances
12:25 NEW: Constructor Reference Variables

Ready for the next, and final, lesson? Click here to proceed to the finish line! Forget Python, you're an anaconda now.    • Python Programming: Lesson 72 - Final  

Thanks for watching, and PLEASE SUBSCRIBE!!!