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

Type Conversion in Python

While Python handles data types automatically, sometimes the program may require us to use exact specific data types rather than relying on the language to figure out what data types would be appropriate. Data types in Python allow you to classify data, define the values ​​that can be assigned, and the operations that can be … Read more

Python Integers: Type Casting and Doubling Integers | Swapping Values | Concatenation of Integers

In this article we will revise the Python Integer concepts we have previously gone through in while discussing Integer data types, we will have a look at how to solve common Integer problems involving type casting/conversion, doubling, swapping of integer values and the concatenation of integer values in Python. Typecasting and doubling Python Integers problem … Read more

Common String Operations in Python

In the previous article we have seen some of the list operations and string operations in python. Now we will look at some more vital string operations, keywords or functions in Python. Transformation/Manipulation of Strings There are a number of fun methods that we can use to transform our string text. Among those more important for … Read more

Lists in Python | Strings in Python – Complete Guide

In this article we will look at the list basics, appending elements to lists, removing list elements, sorting list elements, joining lists and various other fundamental list operations. We will also have a look at strings and the various operations that can be performed on them in Python. Lists in Python In the previous article … Read more

Tuples in Python | Lists In Python

In this article we will examine the operations that can be performed mainly on tuples, strings and lists. We will look at accessing tuple elements, counting the occurrence of a specific element within the tuples, searching for elements, and joining tuples and an introduction to lists. Tuples in Python Tuples in Python are the same … Read more

Global & Local Variables in Python | Data Types in Python | Deleting Variables in Python

We have gone through the basics of Python variables , Let’s further dive into variables in today’s chapter. We will discuss the different variable types, data types, finding out the data type of a variable, deleting variables, local and global variables in python. Python Variables Python variables can be broadly classified into Local variables and … Read more