Python variables aren't typed. The result type is determined by the value (in Perl, it's usually determined by the operator). Float-vs-int-division is one of the annoying unnecessary incompatibilities in python3.
> python2.7 -c 'print(5/2)' 2 > python3.5 -c 'print(5/2)' 2.5
|Replies are listed 'Best First'.|
Re^5: solve cubic equations (Python)
by LanX (Archbishop) on May 05, 2017 at 18:47 UTC