What are python variables?

666    Asked by leahD’Costa in Data Science , Asked on Dec 19, 2019
Answered by leah D’Costa

 Python is an object-oriented language and in python programming, we mostly play around defining objects. To access those objects in our programming we give a reference name to them which is called variable. There are different types of variables like Numbers, List, Tuples, String and Dictionary in python, we will explain later about what kind of objects these variable stores.

Below is some example of how to declare variable in python:

Code Snippet

# Declare a variable

a = 5

print(a)

#Re-Declaring variable

a = "janbask"

print(a)



Your Answer

Interviews

Parent Categories