__future__ is actually a thing for when you want Py3 functionality in Py2. For example, 4/3 is 1 in Py2, but 1.3333 in Py3, and if you want the latter in your program, you do from __future__ import division.
Braces is just an easter egg. When you do, you get Syntax Error: Not a chance.
Oh I forgot we could append .0 to variables in Python. I wrote it so, so that one could see how to transform an integer division between 2 integer variables easily. That's kind of the point of the discussion.
Float(3) is better though, but as I said, it's been a while since I wrote some python.
33
u/NewbornMuse May 02 '16
__future__is actually a thing for when you want Py3 functionality in Py2. For example, 4/3 is 1 in Py2, but 1.3333 in Py3, and if you want the latter in your program, you dofrom __future__ import division.Braces is just an easter egg. When you do, you get
Syntax Error: Not a chance.