sandiegopython / intro-to-python

Introduction to Python (2014)
Creative Commons Attribution 4.0 International
28 stars 26 forks source link

part1 is showing py2.7 code for / #11

Closed alaindomissy closed 10 years ago

alaindomissy commented 10 years ago

part1 is showing py2.7 code: 3 / 2 returns 1 3.0 / 2 returns 1.5 different results for integers and floats this is no longer the case with python3

that was how the notion of type was introduced last time we ran that workshop : int versus float and the type() function

we need to update that part and possibly change the flow to introduce the notion of type in a differnet manner

willingc commented 10 years ago

Good catch @alaindomissy