Boston Python Workshop 8/Friday: Difference between revisions

imported>Jesstess
No edit summary
imported>Jesstess
 
(11 intermediate revisions by the same user not shown)
Line 13:
== Goal #1: set up Python ==
 
(Estimated completion time: 5 minutes)
 
First things first: we need to install Python! Please complete the instructions below for your operating system.
Line 23:
== Goal #2: prepare a text editor ==
 
(Estimated completion time: 5 minutes)
 
In addition to being able to run Python, we are going to install a good text editor for writing and saving Python code during the workshop.<br />
Line 35:
== Goal #3: practice starting and exiting Python ==
 
(Estimated completion time: 5 minutes)
 
We'll do a lot of learning and practicing at a Python prompt (this is "interactive" because you are typing the code and hitting enter to run it yourself, instead of running it from a file). So let's practice starting and exiting Python:
Line 43:
* [[Boston Python Workshop 8/Friday/Linux interactive Python|Linux]]
 
== Goal #4: practice navigating the computer from a command promptterminal ==
 
(Estimated completion time: 10 - 15 minutes)
 
Throughout this workshop, we'll be running Python programs from the terminal, which means we'll want to be comfortable with navigating to those programs from the terminal prompt. In this section, we'll practice using these navigation commands.
Line 55:
== Goal #5: practice running Python code from a file ==
 
(Estimated completion time: 5 minutes)
 
Interactive Python programming at a Python prompt is great for short pieces of code and for testing ideas. For longer code, it can be easier to save the code in a file, and execute the contents of that file (aka a Python script). In this section, we'll practice running Python scripts.
Line 63:
* [[Boston Python Workshop 8/Friday/Linux Python scripts|Linux]]
 
== Goal #6: get dependencies installed fordownload the Saturday projects ==
 
(Estimated completion time: 3010 minutes)
 
* [[Boston Python Workshop 8/Friday/Windows project dependencies|Windows]]
Line 73:
== Goal #7: start learning Python! ==
 
(Estimated completion time: 60 - 90 minutes)
 
It's time to start learning, reading, and writing some Python! Tonight, you'll work through a self-directed tutorial. Saturday morning, we'll have an interactive lecture to cover more Python basics.
 
 
<div style="font-size:125%">[[Boston Python Workshop 8/Friday/Tutorial| &raquo; Click here toand work through tonight's tutorial &laquo;]]</div>
<br />
 
== Goal #8: practice Python using Codecademy ==
 
(Estimated completion time: 30 - 60 minutes)
 
It's time to use what we've learned in the tutorial and get some practice thinking about and solving problems in Python.
Line 89:
To give you this practice, we've created custom online practice problems just for this class, using a site called Codecademy!
 
Tonight, please visit the link below and complete the <b>8 practice problems in the "Strings and choices" section</b>.
 
<br />
<div style="font-size:125%">[http://www.codecademy.com/courses/python-beginner-en-kSQwt &raquo; Click here forand complete tonight's Codecademy exercises &laquo;]</div>
 
 
Line 103:
<ol>
<li>
Start a commandterminal prompt, and from that command prompt start Python. Then quit Python.
</li>
<li>
Line 109:
 
<pre>
print ("Hello World")
</pre>
 
and save the file. From a commandterminal prompt, navigate to and execute that Python script.
</li>
<li>
Line 131:
</pre>
</li>
<li>To test the Twitter installlation, navigate to the Twitter directory and run <code>twitter_api.py</code>:
 
 
<li>
Walk through the Tutorial concept that was most confusing for you. The Tutorial is [[Boston_Python_Workshop_8/Friday/Tutorial| here]].
Line 147 ⟶ 144:
==Congratulations!==
 
You are done with the Friday portion of this Workshop. We'll see you at <b>9:45am</b> tomorrow back here in the basement of the Stata Center! Please bring the laptop you used tonight.
 
We'll have coffee and snacks tomorrow morning. <b>DO NOT BE LATE</b>: you don't want to miss the beginning of the interactive lecture!
 
If you have any questions, comments, or feedback on tonight's material, don't hesitate to let a staff member know.
 
[[File:Champagne.png|100px]][[File:Party.png|125px]]
 
[[Boston Python Workshop 8|&laquo; Back to the Workshop home page]]
Anonymous user