# Getting Started with Python --- CS 65 // 2021-02-04 ## Administrivia - Assignment 1 Questionnaire - Extra Credit Activities + You can get extra credit for up to 2% of your final grade by attending Drake activities and supporting your peers (even if virtual) + To claim your extra credit, send me an email summarizing what happened during the event ## Tips for Success in CS 65 1. Take advantage of **Microsoft Teams** - Download it on your computer **and** phone - Message me when you are stuck (I usually get back to you quicker via Teams) - Use it to coordinate with your partners if working on a group assignment ## Tips for Success in CS 65 2. Start assignments early! - Frustrations in this course happen when you're stuck and don't have enough time to get help 3. Actually do the readings! 4. Be self-aware about how well you understand the material. If something doesn't make sense, ask a question or come to office hours. # Assignment 2 - Due **Thursday** (before class) - **Group** Assignment - Your partner assigned today is your partner for the assignment ## Components of Algorithms - **Basic values**: 500, 3.14, ... - **Basic operations**: +, -, /, //, *, **, ... - **Sequencing**: the order instructions are carried out - **Variables**: names we give to basic values - **Conditionals**: if …. then ... - **Repetition**: do X ten times ... - **Subroutines**: helper algorithms - **Inputs**: initial values that are given to an algorithm - **Outputs**: values that are produced by the algorithm # PYTHON ## Why Python? - It's a **high-level** programming language with relatively simply syntax - It's widely used in industry---especially in research - It's versatile and can be used for + **imperative** programming + **object-oriented** programming + **functional** programming - It has an easy to use interactive shell environment # Demo # Self Checks # Lab Time - You will be sent into a breakout room with your assigned partner - If your name comes alphabetically first, you are the "driver" today and should share your screen - On Tuesday, you will switch roles - Work through the exercises together