Computer Science, asked by mahe2723, 1 year ago

Explain assigning values to variables in Python.

Answers

Answered by Arcel
1

When we run this program the output are going to be as follows:

Python variables are those which don't need to be declared independently in order to get more memory space.

The declaration which happens automatically once you assign a worth to a variable. The equal sign is that which we use (=)  to employ and to assign values to different variables.

The mathematical signs which is to the left of the adequate to (=) operator is that the name of the variable, and therefore the operand to the proper of the = operator is that which is stored as a value.

For example:

# Python

Integer = 100

# This is an integer which is been assigned.

meter = 100.0

# This is a floating point which is been assigned means a number with decimals.

name = “Ram”

# Here a string is being assigned to the variable which is a set of letters.

print integer

print meter

print name

100

1000.0

Ram

Similar questions