Home Download Buy Blog Forum Support

anaconda and python versions

anaconda and python versions

Postby DJS051085 on Mon Sep 16, 2013 7:45 pm

Hi All - I am running anaconda and in notebook I have
Code: Select all
from __future__ import print_function
from __future__ import division
in the first cell and
Code: Select all
4 / 3

in the second cell
the output is
Out[9]:

1


I thought that importing division would cause the output to be float not integer. What aren't I understanding?
DJS051085
 
Posts: 1
Joined: Mon Sep 16, 2013 7:43 pm

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 23 guests