Variables in Python

•

What is Variable..!

Variable is a type of placeholder that contains data in the form of int(‘integer numbers’),float(‘decimal values’), string(‘Alphabets’)…

lets understand the variables by understanding the code given below…

# In this code we will show you how to assign variables and print there values..
# Left side are the variables and right side are the values
# assign the integer number to variable x below
x = 5 

# assign the decimal number(float value) to variable y below
y = 8.5 

# assign the string(characters) to variable z below
z = "student" 

# Now printing all the values
print(x)
print(y)
print(z)

Thank You for your visit..!

If you like post plzz comment for your support..!

Leave a Reply

Your email address will not be published. Required fields are marked *