Returning multiple Variables in Python

In the previous article saw how parameters are passed and handled in Python, now we will look at how we can return multiple variables in Python. Here is an example program that returns two values: When we call the function we receive the two values from add_multiply, later the program prints out the value of … Read more

Global Variables in Python

In the previous article we looked at how we can return multiple variables in Python. Now let us discuss about Global Variables in Python, Global variables are the variables declared outside of functions and classes and that are accessible throughout the entire program. Here in this article we will mainly look at the use of … Read more

Variable Length Arguments in Python

In the previous article we have discussed keyword arguments, now we will look at another type of argument that can be provided to functions: Variable length arguments. Many times we want a functionality to be implemented for various different inputs. If we pass two, then we want sum of two variables. We want a sum … Read more

Python terminology: Keywords, Variables, Functions, Packages and Modules

In the last article we have gone through the definition of programming languages, have discussed the Python programming language along with it’s basic syntax, benefits, usage and some concepts which Python follows. In today’s article we will have a look at the python programming structure, some more statements, and other fundamental python concepts. Python terminologies … Read more