50%(2)1 out of 2 people found this document helpful
This preview shows page 1 - 3 out of 18 pages.
The preview shows page 2 - 3 out of 18 pages.
lab01October 8, 20181Lab 1: ExpressionsWelcome to Data Science 8: Foundations of Data Science! Each week you will complete two labassignments like this one. You can’t learn technical subjects without hands-on practice, so labs arean important part of the course.Before we get started, there are some administrative details.Labs are required. There are two ways to receive credit for each lab.1. Come to your lab section and work on the lab as directed. Before you leave, you need tosubmit the lab and have a staff member check you off to confirmthat you came to labsection and attempted to make progress while you were there. You do not need to finish thelab or answer every question correctly to receive full credit. However, you do need to try;that’s why we check you off. Expect to discuss your progress briefly with a staff memberbefore they will check you off. The lab must be submitted at the end of your lab section,even if it is incomplete, to get credit for attending.2. Lab assignments will be posted Sunday nights. If you complete the entire lab so thatall testspassand submit it by8:59 AM on Wednesday, then you don’t need to physically attend thelab for which you completed the lab assignment. This policy is not encouraged by the coursestaff, and is only recommended if you are sure that you will not be able to make lab a certainweek.For Lab 1, however, you will have the option to complete it on your own and submit it beforeSunday, August 26th at midnight without having to attend lab physically. ThisONLYapplies toLab 1. Every other lab will follow one of the two methods listed above.Collaborating on labs is more than okay -- it’s encouraged! You should rarely be stuck for morethan a few minutes on questions in labs, so ask a neighbor or an instructor for help. (Explainingthings is beneficial, too -- the best way to solidify your knowledge of a subject is to explain it.)Please don’t just share answers, though.You can read more aboutcourse policieson thecourse website.Today’s labIn today’s lab, you’ll learn how to:1. navigate Jupyter notebooks (like this one);2. write and evaluate some basicexpressionsin Python, the computer language of the course;3. callfunctionsto use code other people have written; and4. break down Python code into smaller parts to understand it.This lab covers parts ofChapter 3of the online textbook. You should read the book, but notright now. Instead, let’s get started!1
21. Jupyter notebooksThis webpage is called a Jupyter notebook. A notebook is a place to write programs and viewtheir results.2.11.1. Text cellsIn a notebook, each rectangle containing text or code is called acell.Text cells (like this one) can be edited by double-clicking on them. They’re written in a sim-ple format calledMarkdownto add formatting and section headings. You don’t need to learnMarkdown, but you might want to.