lab01 October 8, 2018 1 Lab 1: Expressions Welcome to Data Science 8: Foundations of Data Science! Each week you will complete two lab assignments like this one. You can’t learn technical subjects without hands-on practice, so labs are an 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 to submit the lab and have a staff member check you off to confirm that you came to lab section and attempted to make progress while you were there. You do not need to finish the lab 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 member before 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 that all tests pass and submit it by 8:59 AM on Wednesday , then you don’t need to physically attend the lab for which you completed the lab assignment. This policy is not encouraged by the course staff, and is only recommended if you are sure that you will not be able to make lab a certain week. For Lab 1, however, you will have the option to complete it on your own and submit it before Sunday, August 26th at midnight without having to attend lab physically. This ONLY applies to Lab 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 more than a few minutes on questions in labs, so ask a neighbor or an instructor for help. (Explaining things 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 about course policies on the course website . Today’s lab In today’s lab, you’ll learn how to: 1. navigate Jupyter notebooks (like this one); 2. write and evaluate some basic expressions in Python, the computer language of the course; 3. call functions to use code other people have written; and 4. break down Python code into smaller parts to understand it. This lab covers parts of Chapter 3 of the online textbook. You should read the book, but not right now. Instead, let’s get started! 1
2 1. Jupyter notebooks This webpage is called a Jupyter notebook. A notebook is a place to write programs and view their results. 2.1 1.1. Text cells In a notebook, each rectangle containing text or code is called a cell . Text cells (like this one) can be edited by double-clicking on them. They’re written in a sim- ple format called Markdown to add formatting and section headings. You don’t need to learn Markdown, but you might want to.
You've reached the end of your free preview.
Want to read all 18 pages?
- Fall '17
- Human height, Test Summary