Python Tutorial Ep. 20 - Lists as Arguments
Kody Simpson
In this episode of the Python series, I show you how lists are handled as arguments in Python. They are passed by reference meaning that when you pass in a list to a function, if you modify it in the function, it will also have those same modifications outside of the function. I also show you how to use the slice operator to make this not happen. #python #pythontutorial
Code: https://github.com/Python-Complete-Tutorial/beginner-tutorials/blob/master/functions/lists_as_arguments.py Join the Community! - https://discord.gg/cortexdev
Want to Support the Channel?
- Become a Member: https://www.youtube.com/KodySimpson/join
- Buy some swag: https://www.youtube.com/KodySimpson/store
- PayPal: https://www.paypal.com/paypalme/kodysimpson
My Socials: Github: https://github.com/KodySimpson Instagram: https://www.instagram.com/kody_a_simpson/ Twitter: https://twitter.com/kodysimp Blog: https://simpson.hashnode.dev/
More Videos coming soon. Leave a comment for any future video suggestions. ... https://www.youtube.com/watch?v=FX8o1caTfK8
47879584 Bytes