+ 1

Python version 2.7 division

In python version 2.7,when we divide two numbers eg 6/3 ,why do we get an integer answer instead of floating point as mentioned in tutorial?

10th Jun 2017, 4:38 PM
Yashvi
Yashvi - avatar
1 Resposta
+ 1
its maybe because the tutorial is all about python 3 ,,. which is an upgraded version of python 2.7 and it has some changes too like this one ... so its better to download python new version which is a free software ... 😊
10th Jun 2017, 5:38 PM
Rishikesh Jadhav
Rishikesh Jadhav - avatar