Nkrs
Taught a friend to write some code today, and we used Python 3 for a couple of reasons. First is that Python in general enforces clean and properly formatted code, and the other are specific to version 3 -- strings are Unicode by default, so no unexpected and hard to explain results like getting 2x the size when calling len() on strings with Cyrillic letters (and no advanced lessons like Unicode on day one!), and that input() always returns a string, which was a useful lesson in data types and how the computer sees numbers and text.
9y, 4w
3 replies
¬