Apr-08-2018, 04:21 PM
(Dec-27-2016, 07:16 AM)Mekire Wrote: 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))
Could you please explain why that is?
To me, a simple typecast to string seems cleaner.