Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (50.2k points)
Can anyone tell me how to declare variable in Python?

1 Answer

0 votes
by (108k points)

You can declare your variable in Python in the following way:

#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 May 3, 2020 in SQL by Sudhir_1997 (55.6k points)
0 votes
1 answer

Browse Categories

...