I am trying to display "5 + 5 = 10" with the syntax as follows print ("2 + 2 = " + ( 2 + 2) ), what is the correct syntax to write it as i keep getting the error :
" TypeError: must be str, not int"
Appreciate the help :)
I tried : str ("2 + 2 = " + ( 2 + 2) )
print("2 + 2 = " + str(2 + 2))5s instead of the2s.