varaible iin python

technical talkiess
0

 print("In the below example we can learn varaiable")

var = "vishal"
var1 = 23
var2 = 23

print("the varaible in python like in upper code")
print(var1 + var2)


print("Type casting in the python")

var4 = "23"
var5 = "23"
print(var4+var5)

# In the abve example they show only string now you can convert the string in to the integer that's called type casting
# the type functon is show the type of the particular variable
print(type(var4))

print(int(var4) + int(var5))


# input in the python
print("Enter the value which you want add")
getinputval1 = input()
getinputval2 = input()
print("Your value addition is",int(getinputval1) + int(getinputval2))
Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)