Boston Python Workshop 5/Friday/Tutorial: Difference between revisions

m
imported>Jesstess3
imported>Individuwill
 
(4 intermediate revisions by 3 users not shown)
Line 3:
This tutorial covers several core programming concepts that we'll build upon during an interactive lecture tomorrow morning. It will take 1-2 hours to complete. There's a break in the middle, and exercises at the middle and end to help review the material.
 
This is an interactive tutorial! First start the Python prompt from the command line, by typing python and hitting return. As you go through this tutorial, any time you see something that looks like this:
 
<pre>
Line 9:
</pre>
 
you should type the expression at athe Python prompt, hitting Return after every line and noting the output.
 
No copying and pasting! You'll learn the concepts better if you type them out yourself.
Line 420:
 
<ol>
<li>Download the file http://mit.edu/jesstess/www/BostonPythonWorkshop5/nobel.py by right-clicking the link and choosing one of ("Download Linked File As..." or "Save Link As..." or "Save Target As..."). The ".py" extension hints that this is a Python script.</li>
<li>Save the file in your Desktop directory.</li>
<li>Open a command prompt, and use the navigation commands (<code>dir</code> and <code>cd</code> on Windows, <code>ls</code>, <code>pwd</code>, and <code>cd</code> on OS X and Linux) to navigate to your home directory. See [[Boston Python Workshop 5/Friday#Goal_.234:_practice_navigating_the_computer_from_a_command_prompt|navigating from a command prompt]] for a refresher on those commands.</li>
Line 770:
Learning about functions opens up a whole new way for us to practice, using the programming site codingbat.com. The big goal of this practice section is to get you thinking about how to solve problems in Python.
 
Please visit the [http://codingbat.com/home/jessica.mckellarbostonpythonworkshop@gmail.com/Friday FridayPythonIntro CodingBat page] and complete the practice problems. You don't have to create a CodingBat account to do the exercises, but if you do create an account it'll keep track of which problems you've completed and other statistics.
 
==End of Part 2==
Line 781:
Take a break, stretch, meet some neighbors, and ask the staff if you have any questions about this material. All that's left today is to get checked off, and we'll pick up with more Python fundamentals tomorrow morning.
 
[[BostonGetting Pythonstarted Workshopwith 5/FridayPython|&laquo; Back to the Friday Workshopmain page]]
Anonymous user