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