menu search
brightness_auto
more_vert
3 1

What is a variable? Give example

Topic Python Programming
Type Short Answer Type
Class 10
thumb_up_off_alt 3 like thumb_down_off_alt 0 dislike

1 Answer

more_vert
 
verified
Verified Answer
1

Variables in Programming act like containers that can store different types of data or any data value in them, a variable in a python program gives data to the computer for processing.

Features of Variables in Python:

  1. Variables play an important role while writing a code.
  2. Variables are the containers that stores some values
  3. All the variables consist of some values assigned to them.
Example of a Variable in Python:
x = "Your Name" 
print(x)

# This is a string (Data Type) here 'x' is a variable 

Learn More about Python Variables at - Python Variables Class 10

thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike

Related questions

thumb_up_off_alt 3 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 3 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 2 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 2 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 2 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 2 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 2 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 3 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 2 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 3 like thumb_down_off_alt 0 dislike
1 answer
...