value = "5+9" v1,v2 = value.split('+') v3 = int(v1) # print(int(v1)) print(type(v3)) print(type(v2))