Global vs Local Variables in Python | Day 41 | 100 Days of Python

Опубликовано: 01 Июль 2026
на канале: Namaste Coders
172
4

In python, variables have scope. So if you have a variable outside a function, and try to change the value of that variable inside a function, it will not actually change that. But it will create a new variable inside the function.

100 days of python is a YouTube shorts series where you will learn basics of python in byte-sized, easy to understand shorts. Keep following "Namaste Coders" for more!

#python #programming #learnpython #namastecoders #100dayschallenge #pythonprogramming