Lesson 8️⃣.3️⃣: Passing Parameters as Reference/Value
Bitesize Key points from this lesson
-
This lesson was focused on Functions and the importance of code maintenance.
-
-
We learned about parameters and arguments, which allow us to pass information
-
We explored the concept of return values and how functions can return values using the
return
statement.
-
we spoke about refactoring code by breaking it down into smaller, reusable functions.
-
finally, we explored the concept of local and global scope, understanding how variables defined within a function are local to that function, while variables defined outside of functions are global.
Activities
The best way to improve your programming skills is to practice.
I created a course for learning Python that you can follow alongside these lessons.
You can check these out at
BitFez’s Learning to code in Python Roadmap 🛣