Editing Intro to Programming and Data Science (Summer 2020)/Day 1 Coding Challenge
From CommunityData
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 1: | Line 1: | ||
Our goal is to get your computer set up with the software you will need for this course and to get started with some basic programming concepts. | Our goal is to get your computer set up with the software you will need for this course and to get started with some basic programming concepts. | ||
* Start your laptop and get on the wireless network. | |||
* Work through the goals on this page in order; they should take around 2 hours. I will help troubleshoot and answer questions — don't hesitate to ask! | * Work through the goals on this page in order; they should take around 2 hours. I will help troubleshoot and answer questions — don't hesitate to ask! | ||
* When you've finished all of the goals, raise your hand and I will come over and go through the checklist with you to make sure everything is working. | |||
== Goal #1: Set up Python | == Goal #1: Set up Python == | ||
(Estimated time: 5 minutes) | (Estimated time: 5 minutes) | ||
Line 12: | Line 14: | ||
* [[OSX set up Python (Anaconda)|OS X]] | * [[OSX set up Python (Anaconda)|OS X]] | ||
== Goal #2: Get a text editor == | |||
== Goal # | (Estimated time: 5 minutes) | ||
It is pretty rare for non-programmers to edit plain text files directly and so Notepad (for Windows) or TextEdit (for Mac) is likely all that you've ever used or needed. | |||
Because programmers work with text files all day, they have built many, many text editors and have [https://en.wikipedia.org/wiki/Editor_war very strong feelings] about the merits of their preferred editor and the weaknesses of competitors. | |||
I am not immune from this human failing, and I'm happy to talk at length about [https://en.wikipedia.org/wiki/Vim_(text_editor) my preferred editor]. However, in this course I will use a simpler editor called [https://atom.io/ Atom], which is free and open source. I highly recommend that you also use Atom. If you want to use something else, then talk to me about it. | |||
For this goal, go to [https://atom.io/ the Atom site] and download and install it. | |||
== Goal #3: Practice starting and exiting Python == | |||
(Estimated 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: | |||
* [[Windows interactive Python|Windows]] | |||
* [[OSX interactive Python|OS X]] | |||
== Goal #4: Practice navigating the computer from a terminal == | |||
(Estimated time: 10 - 15 minutes) | |||
In addition to interactively running code, we'll also be writing whole programs and running them from the terminal. This 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. | |||
* [[Windows terminal navigation|Windows]] | |||
* [[OSX terminal navigation|OS X]] | |||
== Goal #5: Practice running Python code from a file == | |||
(Estimated time: 5 minutes) | (Estimated time: 5 minutes) | ||
Now that you know how to get to a file in the terminal, in this section, we'll practice running Python scripts. | |||
* [[Windows Python scripts|Windows]] | |||
* [[OSX Python scripts|OS X]] | |||
== Goal # | == Goal #6: Start learning Python! == | ||
(Estimated time: 60 - 90 minutes) | (Estimated time: 60 - 90 minutes) | ||
Line 30: | Line 61: | ||
[[Intro To Programming and Data Science (Spring 2020)/Day 1 Tutorial|Day 1 Tutorial]] | [[Intro To Programming and Data Science (Spring 2020)/Day 1 Tutorial|Day 1 Tutorial]] | ||
== Goal # | == Goal #7: Practice Python using DataCamp == | ||
(Estimated time: 30 - 60 minutes) | (Estimated time: 30 - 60 minutes) | ||
Line 36: | Line 67: | ||
It's time to use what we've learned in the tutorial and get some practice thinking about and solving problems in Python. | It's time to use what we've learned in the tutorial and get some practice thinking about and solving problems in Python. | ||
The online code learning site [https://www.datacamp.com/ DataCamp] has been kind enough to make their materials available to our class. You should have received an invitation to our DataCamp class site. This will let you see assignment and work on exercises in DataCamp. If you haven't yet done so, then find the email, create an account, and log in. | |||
For tonight (and the rest of this week), work on the assignment in DataCamp. | |||
== Goal #8: Checkoff == | |||
Tell me that you are ready to be checked off. Together we will go through the following check-off steps: | |||
* Start a terminal prompt, and from that prompt start Python. Then quit Python. | |||
* 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. | |||
* Walk through the Tutorial concept that was most confusing for you. The Tutorial is [[Intro To Programming and Data Science (Spring 2020)/Day 1 Tutorial|Day 1 Tutorial]]. | |||
* Walk through the DataCamp problem that you had the most difficulty with. | |||
If you have any other questions about the tutorial, project setup, or Datacamp questions, now is a great time to ask! | |||
==Congratulations!== | |||
You | You are done with the first class in this series! |