lab01 April 26, 2020 : # Initialize OK from client.api.notebook import Notebook ok = Notebook( 'lab01.ok' ) ===================================================================== Assignment: Lab 1: Expressions OK, version v1.12.5 ===================================================================== 1 Lab 1: Expressions Welcome to Data 8: Foundations of Data Science ! Each week you will complete a lab assignment 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. The weekly lab session has two components: questions and discussion (not using the computer) about recent material, and a lab assignment (like this one!) that develops skills with computational and inferential concepts. These lab assignments are a required part of the course and will be released on Monday mornings. Lab sessions are not webcast. The set of questions covered in lab will be posted; for the related discussion, please attend the session. There are two ways to each full credit the weekly lab: 1. Attend your own assigned lab section and make progress substantial enough for your work to be checked off by course staff. Before you leave, you need to submit the lab and have a staff member check you off . Even if you finish the lab notebook before your lab, you must attend at least the discussion portion of the lab to be checked off. Note that your submitted work need not be complete in order to receive full credit if you were checked off. 2. Complete the lab on your own and submit the completed lab by Wednesday morning at 8:59 a.m. If you choose this route, you must finish the entire lab and pass all autograder tests to receive credit. Because missing lab means missing group discussion of important course concepts, we recommend that you don’t use this option except in weeks when you are physically unable to come to lab. If you have finished your lab early, you can still attend and participate in the discussion. 1
For Lab 1, however, you are required to attend lab and be checked off. For all other labs you can follow one of the two methods listed above. Collaborating on labs is more than okay -- it’s encouraged! You should rarely remain 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 of the 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 examples in the book, but not right now. Instead, let’s get started! 2 1. Jupyter notebooks This webpage is called a Jupyter notebook. A notebook is a place to write programs and view their results, and also to write text.
You've reached the end of your free preview.
Want to read all 20 pages?
- Fall '17
- Human height