Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (55.6k points)

Can anyone tell me what is variable in Python?

1 Answer

0 votes
by (41.4k points)

In Python, the variable will be created just immediately as we assign a value to it. Unlike other languages, it is not required to specify the data type of the variable in Python.

#if your variable is an integer

a=10

#if your variable is float

b=9.03

#if your variable is a string

c=’this is a string text’

#if your variable has either true values or false values

d=True

e=False

If you are looking for an online course to learn Python, I recommend this Python Training program by Intellipaat.

Related questions

0 votes
1 answer
asked Sep 20, 2019 in Python by Sammy (47.6k points)
0 votes
1 answer
0 votes
2 answers
asked Jul 13, 2019 in Python by Sammy (47.6k points)

Browse Categories

...