Skip to content

Commit

Permalink
py3 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierian-Data committed Oct 11, 2016
1 parent 7721e5e commit 708361e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions .ipynb_checkpoints/For Loops -checkpoint.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#for Loops\n",
"# for Loops\n",
"\n",
"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",
"\n",
Expand Down Expand Up @@ -609,8 +609,8 @@
"source": [
"# For Python 3\n",
"for k,v in d.items():\n",
" print k\n",
" print v "
" print(k)\n",
" print(v) "
]
},
{
Expand Down Expand Up @@ -640,21 +640,21 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"display_name": "Python 3",
"language": "python",
"name": "python2"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.10"
"pygments_lexer": "ipython3",
"version": "3.5.1"
}
},
"nbformat": 4,
Expand Down
16 changes: 8 additions & 8 deletions For Loops .ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#for Loops\n",
"# for Loops\n",
"\n",
"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",
"\n",
Expand Down Expand Up @@ -609,8 +609,8 @@
"source": [
"# For Python 3\n",
"for k,v in d.items():\n",
" print k\n",
" print v "
" print(k)\n",
" print(v) "
]
},
{
Expand Down Expand Up @@ -640,21 +640,21 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"display_name": "Python 3",
"language": "python",
"name": "python2"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.10"
"pygments_lexer": "ipython3",
"version": "3.5.1"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 708361e

Please sign in to comment.