You are given a Python code where two variables 'number_var' and 'string_var' are defined. Your task is to fill the blanks in the code to convert 'string_var' to an integer and add it to 'number_var'. Then, convert the sum to a string and concatenate it with 'The sum is: ' to print the output.
Summing and converting variables
Report a typo
Fill in the gaps with the relevant elements
number_var = 10
string_var = "30"
sum_var = number_var + (string_var)
print("The sum is: " + (sum_var)) ___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.