Skip to content

Commit 3a2e14d

Browse files
committed
Merge pull request #2 from pythonsd/py3-part-2
Update part 2 to Python 3
2 parents babd632 + 154c3ea commit 3a2e14d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

part-2.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@
733733
"collapsed": false,
734734
"input": [
735735
"for name in names:\n",
736-
" print name "
736+
" print(name)"
737737
],
738738
"language": "python",
739739
"metadata": {},
@@ -751,7 +751,7 @@
751751
"collapsed": false,
752752
"input": [
753753
"for x in names:\n",
754-
" print x"
754+
" print(x)"
755755
],
756756
"language": "python",
757757
"metadata": {},
@@ -769,7 +769,7 @@
769769
"collapsed": false,
770770
"input": [
771771
"for word in names:\n",
772-
" print \"Hello \" + word"
772+
" print(\"Hello \" + word)"
773773
],
774774
"language": "python",
775775
"metadata": {},
@@ -880,7 +880,7 @@
880880
"input": [
881881
"for name in names:\n",
882882
" if name[0] in \"AEIOU\":\n",
883-
" print name + \" starts with a vowel\""
883+
" print(name + \" starts with a vowel\")"
884884
],
885885
"language": "python",
886886
"metadata": {},

0 commit comments

Comments
 (0)