From 708361e69233c5f4337aa4e3907a7eba231d79e8 Mon Sep 17 00:00:00 2001 From: Marci Date: Tue, 11 Oct 2016 16:34:26 -0700 Subject: [PATCH] py3 fix --- .ipynb_checkpoints/For Loops -checkpoint.ipynb | 16 ++++++++-------- For Loops .ipynb | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.ipynb_checkpoints/For Loops -checkpoint.ipynb b/.ipynb_checkpoints/For Loops -checkpoint.ipynb index fcdfd51..3e53e9b 100644 --- a/.ipynb_checkpoints/For Loops -checkpoint.ipynb +++ b/.ipynb_checkpoints/For Loops -checkpoint.ipynb @@ -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", @@ -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) " ] }, { @@ -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, diff --git a/For Loops .ipynb b/For Loops .ipynb index fcdfd51..3e53e9b 100644 --- a/For Loops .ipynb +++ b/For Loops .ipynb @@ -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", @@ -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) " ] }, { @@ -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,