LCfP / python_basic_track

This repository will be used to develop and publish the materials for the Python basic track offered by the LCfP. It is initially meant to be used together with the lab-sessions we provide.
0 stars 0 forks source link

Python 2/3 dissimilarities #10

Open N-Wouda opened 7 years ago

N-Wouda commented 7 years ago

This issue exists to keep track of differences between Python 2.7 (as used by Codecadamy), and Python 3.x (as used in class). We need to incorporate these differences into the various parts of the book, on a 'where applicable' basis.

VincentVelthuizen commented 7 years ago

Print used to be a function without parentheses, now it is a function WITH parentheses, this is mentioned in chapter "Strings and Console output" ( #5 ).

VincentVelthuizen commented 7 years ago

Let's put any relevant difference in an environment. That way we can easily make them recognizable and allow them to be gathered up at the end (or something).

Commit https://github.com/LCfP/python_basic_track/commit/eaba7c3c7fed886b682d6a08d2817b1d7a8babc7 puts the basics for this feature into to main document. Writing it out and possibly putting it into a separate package will be part of this issue.

It should be worked on at least a little before release of version 0.1 (thus the milestone). We should see where we stand after that.