>>> print 'Hello, world!'
File "", line 1
print 'Hello, world!'
^
SyntaxError: Missing parentheses in call to 'print'. Did you
mean print('Hello, world!')?
Python 3
11
50
Python 3
>>> ' ' > []
Traceback (most recent call last):
File "", line 1, in
TypeError: '>' not supported between instances
of 'str' and 'list'
Slide 51
Slide 51 text
Indentation
6.
51
Slide 52
Slide 52 text
52
Python 3
>>> while True:
... print('hello')
... print('bye')
File "", line 3
print('bye')
^
TabError: inconsistent use of tabs and spaces in
indentation
Slide 53
Slide 53 text
53
Which version
to learn?
(and which to
teach?)
Slide 54
Slide 54 text
54
Which
version to
code with?
Slide 55
Slide 55 text
55
2014 - Python 2 78% X 22% Python 3
Slide 56
Slide 56 text
56
2014 - Python 2 78% X 22% Python 3
2016 - Python 2 60% X 40% Python 3
Slide 57
Slide 57 text
57
2014 - Python 2 78% X 22% Python 3
2016 - Python 2 60% X 40% Python 3
2017 - Python 2 25% X 75% Python 3