[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-687561-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-687561-en":130,"doc-similar-687561":149},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","lab-1-welcome-to-data-6-solutions","Lab 1 - Welcome to Data 6! - Solutions","","Lab 1 introduces the Data 6 course workflow and explains how labs support later homework by reinforcing core programming concepts. The material guides students through using Jupyter Notebook, including the structure and behavior of code cells and Markdown cells, running cells with common keyboard shortcuts, and interpreting In/Out numbering. It also covers basic Python arithmetic, operator precedence, parentheses to change evaluation order, and the use of hashtag comments for explanations.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/exam/","Exam",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/lab-1-welcome-to-data-6-solutions/687561/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/lab-1-welcome-to-data-6-solutions/687561.png","ImageObject",300,407,{"name":42,"@type":43},"Bintang","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-15","2026-11-07",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",9,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What are the main goals of Lab 1 in the Data 6 course?","Question",{"text":63,"@type":64},"The lab goals are to access the class technology, become familiar with the Jupyter Notebook environment, practice Python arithmetic operators, and learn how to use Python names.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How do code cells and Markdown cells work in a Jupyter Notebook?",{"text":68,"@type":64},"Code cells execute Python code and show results below the cell, while Markdown cells display text and can be run to render the formatted content.",{"name":70,"@type":61,"acceptedAnswer":71},"How can a student run a code cell in Jupyter Notebook?",{"text":72,"@type":64},"Click the cell to activate it, then either use Shift+Return/Enter as a keyboard shortcut or click the Run button in the cell toolbar.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},687561,1794084137,{"code":4,"msg":82,"data":83},"success",[84,88,92,95,100,105,110,115,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":93,"slug":94},70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},6,"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":113,"slug":114},8,"Research & Report",30,"research-report",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":33,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":123,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":80,"read_time":143,"preview_page_count":22,"preview_urls":144},962085564381,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","Lab 1 – Welcome to Data 6!  \n[Solutions]  \nData 6, Summer 2022 Welcome to the first lab section of Data 6!  \nFirst and foremost, labs are designed to complement homework assignments. While labs are submitted or graded, we encourage you to work through all questions carefully to familiarize yourself with key programming concepts that you will use later on in your homeworks. Remember, you learn data science by doing data science!  \nThe goals of this lab section:  \n Access all of the technology we'll be using in this class;  \n Familiarize yourself with the Jupyter Notebook environment;  \n Use arithmetic operators in Python; and  \n Work with Python names.  \nPart 1: Jupyter Notebook Cells  \nNot these! →  \nJupyter Notebooks are made up of cells. There are two types of cells in a Jupyter Notebook:  \ncode cells and Markdown cells.  \n Code cells are where we write our Python code.  \n Markdown cells allow us to write text, like the text you're reading right now. In Homework 1 , you'll get a chance to learn a bit of Markdown.  \nCode cells  \nRunning a code cell will execute all of the code it contains. Any output produced by the code will appear below the cell. Notice the In: and Out: statements to the left of the cells, followed  \nlocalhost:8888/nbconvert/html/Data 6/su22-dev/lab/lab01/lab01-sols.ipynb?download=false 1/10  \n7/8/22, 10:57 AM  \nIn [1]:  \nOut[1]:  \nIn [2]:  \nOut[2]:  \nIn [3]:  \nOut[3]:  \nIn [4]:  \nOut[4]:  \nIn [5]:  \nlab01-sols  \nby a number. That number designates the order in which the cell was run. For example, the number [3] next to a cell would indicate that this cell is the third cell that has been run in the notebook so far, or that this is the third time you've run this cell if you've re-run the cell multiple times.  \nTo run the code in a code cell, first click on that cell to activate it. It'll be highlighted with a little green or blue rectangle. Next, do one of the following:  \n Keyboard shortcut: Hold down the Shift key and press Return or Enter .  \n Button click: Click the \" Run\" button in the cell toolbar above.  \nWhile the above two options give no difference in computer runtime performance, it's useful to internalize some common keyboard shortcuts early in your Jupyter experience (think of it like learning \" Ctrl-C\" or \" Command-C\" to copy instead of \" Right click-> Copy to Clipboard\" ) . While they're not required for this course, keyboard shortuts will greatly improve your quality of life when programming Python (just trust us on this) .  \nWe can use code cells to do arithmetic in Python. Try running the code cells below:  \n3 + 4 ** 2  \n19  \nThe order of evaluation is what you might expect: parentheses, then exponentiation, then multiplication and division, then addition and subtraction; from left to right.  \n2 * ( 3 + 10)  \n26  \nYou can use parentheses to modify the typical order of evaluation. How would the above output change, if you removed the parentheses?  \n4 ** 2  \n1 + 2 + 4 + 8 + 16 + 32 + 64  \n127  \nNote that only the value from evaluating the last expression is displayed; the output from 4 **2 isn't shown at all. This is expected behavior.  \n10000  \n10000  \nAlso notice that this cell contains a very simple expression that evaluates to 1000 .  \n10 + 20 + 30-max ( 10 , 20 , 30) -min ( 10 , 20 , 30)  \nlocalhost:8888/nbconvert/html/Data 6/su22-dev/lab/lab01/lab01-sols.ipynb?download=false 2/10  \n7/8/22, 10:57 AM  \nOut[5]:  \nIn [6]:  \nOut[6]:  \nIn [7]:  \nIn [8]:  \nOut[8]:  \nlab01-sols  \n20  \nThe output you see from running these five code cells are the values 19 , 16 , 127 , 1000 and 20 displayed, respectively.  \nComments in code cells are denoted using a hashtag \\# ) . Comments are used to explain what code does when necessary (or, occasionally in our case, to provide instructions) .  \n\\# This is a comment! 19- 18  \n1  \nIf you try and use syntax Python doesn't know about, it will give you an error.  \n3 + * 4  \nFile \"\u003Cipython-input-7-9a0a44f9beb0>\" , line 1  \n3 + * 4  \n^  \nSyntaxError : invalid syntax","cbCaiifVOfwEp64R","https://ap.wps.com/l/cbCaiifVOfwEp64R","pdf",654630,"English","# Lab 1 – Welcome to Data 6!\n## Goals of the lab section\n## Part 1: Jupyter Notebook Cells\n## Code cells\n## Markdown cells\n## Converting cells\n## Adding and deleting cells\n## Useful keyboard shortcuts","[{\"question\":\"What are the main goals of Lab 1 in the Data 6 course?\",\"answer\":\"The lab goals are to access the class technology, become familiar with the Jupyter Notebook environment, practice Python arithmetic operators, and learn how to use Python names.\"},{\"question\":\"How do code cells and Markdown cells work in a Jupyter Notebook?\",\"answer\":\"Code cells execute Python code and show results below the cell, while Markdown cells display text and can be run to render the formatted content.\"},{\"question\":\"How can a student run a code cell in Jupyter Notebook?\",\"answer\":\"Click the cell to activate it, then either use Shift+Return/Enter as a keyboard shortcut or click the Run button in the cell toolbar.\"}]","Lab 1 - Welcome to Data 6! - Solutions | PDF",25,[145],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/33f07fce47f6ce4f7310b6725481b059.webp",983,1272,{"list":150,"token":11},[151,157,164,171,177,182,189,195,201,207],{"doc_id":152,"doc_title":153,"file_type":137,"home_preview_img_url":154,"slug":155,"view_count":22,"category_name":29,"create_tm":156},759571,"Google Colab Preparation Worksheet - Answer Key","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044463068/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796161019&Signature=8PD20flmkA3IJxpz9GKIoX4aCfA%3D","google-colab-preparation-worksheet-answer-key",1795888137,{"doc_id":158,"doc_title":159,"file_type":137,"home_preview_img_url":160,"slug":161,"view_count":162,"category_name":29,"create_tm":163},203096,"Topics in Risk Management - Course Syllabus","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229882918464/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796161019&Signature=voHO1pbxdGGMuMGTMtYE70rolLc%3D","topics-in-risk-management-course-syllabus",14,1788555668,{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":169,"category_name":29,"create_tm":170},399328,"Vol. 32 - No. 3 - September 2026 - How to Prepare for PCPA","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229919362789/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796161019&Signature=DRxE8DvPe4jKbAsRwwJo2XDXSpQ%3D","vol-32-no-3-september-2026-how-to-prepare-for-pcpa",12,1790496150,{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":169,"category_name":29,"create_tm":176},317475,"Course 20 - AWS Machine Learning - International Certificate Track","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229907753273/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796161019&Signature=GYvCI2e9oITwnVbVMEPSMAVyfvw%3D","course-20-aws-machine-learning-international-certificate-track",1789933397,{"doc_id":178,"doc_title":159,"file_type":137,"home_preview_img_url":179,"slug":161,"view_count":180,"category_name":29,"create_tm":181},203073,"https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229882917868/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796161019&Signature=BjxJJzWlHpwgn6EY2WrXp%2FhQc7U%3D",13,1788555490,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":187,"category_name":29,"create_tm":188},314583,"AP® Physics 1 Sample Syllabus #2 - Instructional Plan and Science Practices","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229907669557/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796161019&Signature=60zGC2%2B0NViN8dL3YRbZblIUQpQ%3D","ap-physics-1-sample-syllabus-2-instructional-plan-and-science-practices",11,1789901193,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":162,"category_name":29,"create_tm":194},434174,"Advanced Placement Physics 1 - AP Physics 1 Syllabus","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229923634671/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796161019&Signature=34zvRZ8TiiiYCB9GvjgdoU49qG8%3D","advanced-placement-physics-1-ap-physics-1-syllabus",1790667408,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":111,"category_name":29,"create_tm":200},478620,"Using Order of Operations with Decimals - Answer Key","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229926732406/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796161019&Signature=O10f%2BnnSfumALoUwPLwebJIxC%2BE%3D","using-order-of-operations-with-decimals-answer-key",1790791878,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":106,"category_name":29,"create_tm":206},669462,"AP Chemistry - Course Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988301723/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796161019&Signature=ye5jgQ0iXgLw8OElklYrtfd%2Bi5w%3D","ap-chemistry-course-overview",1793555548,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":169,"category_name":29,"create_tm":212},523226,"Numeric Expressions and the Order of Operations - Grade 6 Math Worksheet - Evaluate Each Expression","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229939759046/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796161019&Signature=HorheYWTyiy2Naw1o4NIrbhppKo%3D","numeric-expressions-and-the-order-of-operations-grade-6-math-worksheet-evaluate-each-expression",1791426626]