Var Example 1


print("#print string variable")
print("john")
print(type("john"))
print("============================")

print("#Example:1")
a = 5
print(a)
type(a)
print("a value is:", a, "and type of a is:", type(a))
print("============================")

print("#Example:2")
b="hello"
print(b)
type(b)
print("b value is:", b, "and type of b is:", type(b))
print("============================")

# Note: In above Expression, b: is memory location, "hello":  is expression

print("#Example:3")
a = 50
print("a value is :",a)
b = a
print("b value is :",b)
print("#Note:   a------>>> 50<<<------------b")





Output:

#print string variable
john
<class 'str'>
============================
#Example:1
5
a value is: 5 and type of a is: <class 'int'>
============================
#Example:2
hello
b value is: hello and type of b is: <class 'str'>
============================
#Example:3
a value is : 50
b value is : 50
#Note:   a------>>> 50<<<------------b