Category Archives: Python3

Global and Local scopes of Variables

So we are good with functions. Let us learn something called scope of a variable. Scope of a variable will depends on the place where is is standing and keyword used while defining it. There are two kinds of scopes: Global Local Thumb rules: Code in the global scope cannot use any local variables. However,… Read More »


What is function: Function is block of code that gets executed multiple times. Why function is required: Without function one has to write the same piece of code again and again. Without functions you have to Copy and paste every time. How to create and Use function: Syntax: def keyword followed by function name followed by… Read More »