...
 
Commits (3)
...@@ -228,7 +228,7 @@ ...@@ -228,7 +228,7 @@
"extrashopping = ['cheese', 'flour', 'eggs', 'spaghetti', 'sausages', 'bread']\n", "extrashopping = ['cheese', 'flour', 'eggs', 'spaghetti', 'sausages', 'bread']\n",
"for item in extrashopping:\n", "for item in extrashopping:\n",
" if item not in shopping: \n", " if item not in shopping: \n",
" print item, \"is already in the list.\"\n", " print(item, \"is already in the list.\")\n",
" else: \n", " else: \n",
" shopping.append(item)\n", " shopping.append(item)\n",
"print(shopping) \n", "print(shopping) \n",
...@@ -249,7 +249,7 @@ ...@@ -249,7 +249,7 @@
" if item in shopping:\n", " if item in shopping:\n",
" shopping.append(item)\n", " shopping.append(item)\n",
" else: \n", " else: \n",
" print item, \"is already in the list.\"\n", " print(item, \"is already in the list.\")\n",
"print(shopping)\n", "print(shopping)\n",
"```" "```"
] ]
...@@ -266,7 +266,7 @@ ...@@ -266,7 +266,7 @@
"extrashopping = ['cheese', 'flour', 'eggs', 'spaghetti', 'sausages', 'bread']\n", "extrashopping = ['cheese', 'flour', 'eggs', 'spaghetti', 'sausages', 'bread']\n",
"for item in extrashopping:\n", "for item in extrashopping:\n",
" if item in shopping:\n", " if item in shopping:\n",
" print item, \"is already in the list.\"\n", " print(item, \"is already in the list.\")\n",
" else: \n", " else: \n",
" shopping.append(item)\n", " shopping.append(item)\n",
"print(shopping)\n", "print(shopping)\n",
......
# Introduction to Python Programming # Introduction to Python Programming
## A programming course suitable for beginners ## A programming course suitable for beginners
__Click the button below to launch the course materials in an interactive environment, thanks to the [Binder](http://mybinder.org) service from [The Freeman Lab](http://thefreemanlab.com).__ (Current build of Binder materials: 27-Sep-2016) __Click the button below to launch the course materials in an interactive environment, thanks to the [Binder](http://mybinder.org) service from [The Freeman Lab](http://thefreemanlab.com).__ (Current build of Binder materials: 17-Jan-2018)
[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/tobyhodges/ITPP/master) [![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/tobyhodges/ITPP/master)
......