2 + 2 = 5
>>> num = 2.49
>>> print '%.f' % num, '+', '%.f' % num, '=', '%.f' % (num + num)
2 + 2 = 5
http://www.quora.com/Mathematics/How-can-you-make-2-+-2-5/answer/Sanjay-Sabnani
'%.f' % 2.5 = 2
'%.f' % 2.6 = 3
Written by นักศึกษากึ่งสำเร็จรูป
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#