print("Python Type Casting")
str_x = "Pavan" #string contains words
str_y = "12" #string contains numbers

print("Now Convert str_y to int")
print(type(str_y))
str_y = int(str_y)
print(type(str_y))

print("Now Convert to Float")
str_y = float(str_y)
print(type(str_y))
1fbeaedeb96fc1dc2c496589f97904c1116576f5
<mask token>

print('Python Type Casting')
<mask token>
print('Now Convert str_y to int')
print(type(str_y))
<mask token>
print(type(str_y))
print('Now Convert to Float')
<mask token>
print(type(str_y))

print('Python Type Casting')
str_x = 'Pavan'
str_y = '12'
print('Now Convert str_y to int')
print(type(str_y))
str_y = int(str_y)
print(type(str_y))
print('Now Convert to Float')
str_y = float(str_y)
print(type(str_y))

print("Python Type Casting")
str_x = "Pavan" #string contains words
str_y = "12" #string contains numbers

print("Now Convert str_y to int")
print(type(str_y))
str_y = int(str_y)
print(type(str_y))

print("Now Convert to Float")
str_y = float(str_y)
print(type(str_y))