str1 = "Hello"
str1 = not executing while
print(str1) = H is giving result
If you really want to convert the string to and int, try (after "print(str1[3::])":
sum1 = "5"
print(int(sum1) + 2)
~Remember to convert the data type of the variable because you cannot add a string to an int.