string to integer convert in the python

technical talkiess
0

string to integer convert 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))
Tags

Post a Comment

0Comments

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

Post a Comment (0)