Editing Intro to Programming and Data Science (Fall 2023)/Week 1 Coding Challenge

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 5: Line 5:
== Goal #1: Set up Python and make a class folder ==
== Goal #1: Set up Python and make a class folder ==


(Estimated time: 15 minutes)
(Estimated time: 5 minutes)
<ol>
<li> First things first: We are going to install "Anaconda". This is a suite of programs for doing data science with Python. It will install the Python programming language, together with a number of other packages that we will be using later in the course, such as pandas and Jupyter.
 
<p>
You should be able to install it from [https://www.anaconda.com/products/distribution https://www.anaconda.com/products/distribution].
</p>
</li>


<li>We are also going to install VSCode. This is an [[wikipedia:Integrated development environment|IDE]], which is an application designed to make programming easier. Find your operating system [https://code.visualstudio.com/docs/setup/setup-overview on this page] and follow the instructions.
First things first: We are going to install "Anaconda". This is a suite of programs for doing data science with Python. It will install the Python programming language, together with a number of other packages that we will be using later in the course, such as pandas and Jupyter. Please complete the instructions below for your operating system.


<p>
You should be able to install it from [https://www.anaconda.com/products/distribution https://www.anaconda.com/products/distribution]&mdash;make sure that you install Python 3.9.
Once you have VSCode installed, you should also install the `Python`, `Jupyter`, `Quarto`, and `Github Copilot` extensions. Extension search can be found on the left-hand menu, or with `Ctrl-Shift-X`.
</p>
</li>


<li>
After you have installed it, you should be able to open Anaconda Navigator, and then open Juptyer Lab.
You should also make a folder to use for your class files. A dedicated folder will help you keep track of all the items you download or write as part of the class, and make them easier to find later. One of the secrets of data science is being kind to your future self by being extremely organized.


You may want to create sub-folders like `Programming Challenges` and `Final Project`.
* You should also make a folder to use for your class files. A dedicated folder will help you keep track of all the items you download or write as part of the class, and make them easier to find later. One of the secrets of data science is being kind to your future self by being extremely organized.
</li>
</ol>


== Goal #2: Practice running Python code from an existing Jupyter notebook ==
== Goal #2: Practice running Python code from an existing Jupyter notebook ==
Line 32: Line 19:
(Estimated time: 5 minutes)
(Estimated time: 5 minutes)


We're going to use Jupyter notebooks to write and run Python throughout the class. Jupyter notebooks can mix together text and code. You can make changes and immediately see what happens and you can even export them to different file formats. In this section of the setup process, we'll try out your Python setup by running code in an existing notebook.
We're going to use Jupyter notebooks to write and run Python throughout the class.  By installing Anaconda, you can now use your computer's web browser to write and run python code files on your computer. Jupyter notebooks can mix together text and code. You can make changes and immediately see what happens and you can even export them to different file formats. In this section of the setup process, we'll try out your Python setup by running code in an existing notebook.
 


Right click [https://jeremydfoote.com/Intro-to-Programming-and-Data-Science/day_1/first_notebook.ipynb this link], save it to your computer, and then open it in VSCode. Run each of the cells and read through the instructions.
Right click [https://jeremydfoote.com/Intro-to-Programming-and-Data-Science/day_1/first_notebook.ipynb this link], save it to your computer, and then open it in Jupyter. Run each of the cells and read through the instructions.


== Goal #3: Start learning Python! ==
== Goal #3: Start learning Python! ==
Line 51: Line 37:
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.


Your next task is to work through '''the first two lessons''' on learnpython.org (there are ''many'' lessons, so don't just keep hit "Next" or you'll never finish!):
<div style="font-size:125%">[https://learnpython.org/ &raquo; Click here and complete the first two lessons on Learnpython &laquo;]</div>
 
Your next task is to work through '''the first two lessons''' (there are ''many'' lessons, so don't just keep hit "Next" or you're never finish!):


* [https://www.learnpython.org/en/Hello%2C_World%21 Hello, World]
* [https://www.learnpython.org/en/Hello%2C_World%21 Hello, World]
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)