Skip to content

Commit 708361e

Browse files
committed
py3 fix
1 parent 7721e5e commit 708361e

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

.ipynb_checkpoints/For Loops -checkpoint.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"#for Loops\n",
7+
"# for Loops\n",
88
"\n",
99
"A **for** loop acts as an iterator in Python, it goes through items that are in a *sequence* or any other iterable item. Objects that we've learned about that we can ietrate over include strings,lists,tuples, and even built in iterables for dictionaries, such as the keys or values.\n",
1010
"\n",
@@ -609,8 +609,8 @@
609609
"source": [
610610
"# For Python 3\n",
611611
"for k,v in d.items():\n",
612-
" print k\n",
613-
" print v "
612+
" print(k)\n",
613+
" print(v) "
614614
]
615615
},
616616
{
@@ -640,21 +640,21 @@
640640
],
641641
"metadata": {
642642
"kernelspec": {
643-
"display_name": "Python 2",
643+
"display_name": "Python 3",
644644
"language": "python",
645-
"name": "python2"
645+
"name": "python3"
646646
},
647647
"language_info": {
648648
"codemirror_mode": {
649649
"name": "ipython",
650-
"version": 2
650+
"version": 3
651651
},
652652
"file_extension": ".py",
653653
"mimetype": "text/x-python",
654654
"name": "python",
655655
"nbconvert_exporter": "python",
656-
"pygments_lexer": "ipython2",
657-
"version": "2.7.10"
656+
"pygments_lexer": "ipython3",
657+
"version": "3.5.1"
658658
}
659659
},
660660
"nbformat": 4,

For Loops .ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"#for Loops\n",
7+
"# for Loops\n",
88
"\n",
99
"A **for** loop acts as an iterator in Python, it goes through items that are in a *sequence* or any other iterable item. Objects that we've learned about that we can ietrate over include strings,lists,tuples, and even built in iterables for dictionaries, such as the keys or values.\n",
1010
"\n",
@@ -609,8 +609,8 @@
609609
"source": [
610610
"# For Python 3\n",
611611
"for k,v in d.items():\n",
612-
" print k\n",
613-
" print v "
612+
" print(k)\n",
613+
" print(v) "
614614
]
615615
},
616616
{
@@ -640,21 +640,21 @@
640640
],
641641
"metadata": {
642642
"kernelspec": {
643-
"display_name": "Python 2",
643+
"display_name": "Python 3",
644644
"language": "python",
645-
"name": "python2"
645+
"name": "python3"
646646
},
647647
"language_info": {
648648
"codemirror_mode": {
649649
"name": "ipython",
650-
"version": 2
650+
"version": 3
651651
},
652652
"file_extension": ".py",
653653
"mimetype": "text/x-python",
654654
"name": "python",
655655
"nbconvert_exporter": "python",
656-
"pygments_lexer": "ipython2",
657-
"version": "2.7.10"
656+
"pygments_lexer": "ipython3",
657+
"version": "3.5.1"
658658
}
659659
},
660660
"nbformat": 4,

0 commit comments

Comments
 (0)