๐Ÿ“– Beginning Python Programming /
Module: Basic Python

Type Casting

๐Ÿ“– Beginning Python Programming / Basic Python / Type Casting

Converting string into integer

data = '123'
result = int(data)
data = '123'
result = int(data)
print(result)