Editing Community Data Science Course/Day 1 Exercise

From CommunityData
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 15: Line 15:
* [[Windows set up Python (Anaconda)|Windows]]  
* [[Windows set up Python (Anaconda)|Windows]]  
* [[OSX set up Python (Anaconda)|OS X]]
* [[OSX set up Python (Anaconda)|OS X]]
'''If you already think you have python''' great! But let's make sure it meets the minimum requirements for this class. In particular, let's make sure it's python version 3 not version 2.


== Goal #2: Prepare a text editor ==
== Goal #2: Prepare a text editor ==
Line 70: Line 68:
To give you this practice, we've created custom online practice problems just for this class, using a site called Codecademy!
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 '''14 practice problems in the "Python 2" lecture'''.
Tonight, please visit the link below and complete the '''8 practice problems in the "Strings and choices" section'''. '''Go ahead and skip problem #4 ("Make HTML")'''. It's not a problem if you do it but we find that it's confusing and we'd prefer to skip it this time.


<div style="font-size:125%">[https://www.codecademy.com/learn/learn-python &raquo; Click here and complete tonight's Codecademy exercises &laquo;]</div>
<div style="font-size:125%">[http://www.codecademy.com/courses/python-beginner-en-kSQwt &raquo; Click here and complete tonight's Codecademy exercises &laquo;]</div>


You don't have to create a Codecademy 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.
You don't have to create a Codecademy 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.
Line 83: Line 81:
* Create a new Python file (with a .py extension). In that file, type: <code>print("Hello World")</code> and then Enter and save the file. From a terminal prompt, navigate to and execute that Python script.
* Create a new Python file (with a .py extension). In that file, type: <code>print("Hello World")</code> and then Enter and save the file. From a terminal prompt, navigate to and execute that Python script.
* Open your text editor, and press "Tab". Use the left arrow key to show the instructor that you are using spaces to indent, not tabs.
* Open your text editor, and press "Tab". Use the left arrow key to show the instructor that you are using spaces to indent, not tabs.
* Walk through the Tutorial concept that was most confusing for you. The Tutorial is [[Community_Data_Science_Course/Day_1_Tutorial|here]].
* Walk through the Tutorial concept that was most confusing for you. The Tutorial is [[Community Data Science Workshops/Day 0 tutorial|here]].
* Walk through the Codecademy problem that you had the most difficulty with. The Friday Codecademy questions are [http://www.codecademy.com/courses/python-beginner-en-kSQwt here].
* Walk through the Codecademy problem that you had the most difficulty with. The Friday Codecademy questions are [http://www.codecademy.com/courses/python-beginner-en-kSQwt here].


Please note that all contributions to CommunityData are considered to be released under the Attribution-Share Alike 3.0 Unported (see CommunityData:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)