Dec-27-2016, 07:16 AM
(Dec-27-2016, 07:00 AM)dursland Wrote: When I change the variable to a string the line executes properly.That is exactly it. You can't concatenate a string and int.
The recommended way would be to use format. String concatenation in general is not a great technique (though often the first thing taught >.>)
var1 = 2 + 2 print('The result of all calculations is {} and we are done.'.format(var1))