<style>
.present {
text-align: left;
}
</style>
---
###### tags: `Week 17` `W17D1`
---
# Welcome to Mod6!
## Learning a second (programming) language
---
## Module 6
- Your Job will be to create a Full Stack App with a team of developers, using a Python Flask server and React client
- You will have 3 weeks to prepare for this job
- Week 1 - Python Basics
- Week 2 - Flask and SQLAlchemy
- Week 3 - Docker, AWS, project planning
---
## Module 6 Overview
- Week 17: Python language (inverted style)
- Intro to Python Basics
- Week 18: Python web applications (lecture style)
- Building a server with Python & Flask
- Week 19: Docker (lecture style)
- Docker & Project Planning
---
## Week 17 Overview
- Learning the basics of a new language - Python!
- Will feel a lot like Mod 1 this week
- Lots of short smaller problems to practice on
- Focus on using the Python Documentation or built in Help when needed
---
## This week
- Monday: Python setup & basics
- Tuesday: Python data types & control flow
- Wednesday: Python collections
- Thursday: Python importing, decorators, classes
- Friday: Study Day!
---
## Python vs JavaScript Demo!
- This week is really not about learning new concepts, its learning how we do things we already know how to do in JavaScript
- Some things will look very similar to JS
- Let’s look at some code!
---
## For the rest of today...
- async study of python material
- Placements visit after break
- Grading will be done asap, I will announce when its complete
- Have fun, cause python is awesome!
---
## Python Setup:
1. Python Install
- Use the [python-setup.md](https://github.com/appacademy/unified-setup/blob/main/python-setup.md) in the repo linked here
2. Explore the basics of Python syntax & data types
---
## Installation walkthrough
- Install Pyenv
- Configure shell environment for Pyenv by updating startup scripts
- Windows users need to install some extra dependencies for Python
- Install Python (using Pyenv)
- Install Pipenv
- Don't worry about this - we'll get to it next week!
---
## Verifying your Python install
1. The following commands should return the same Python 3.9.4+ version:
```
python --version
python3 --version
```
2. `which python` should return `~/.pyenv/shims/python`
---
## Intro to Python Section - Readings
Intro to Python Section in Canvas (23 min)
- A second Language - 10 min
- Intro to Functions - 10 min
---
## Strings Reading & Videos
Strings ( 30 min)
- String Data Type - 10 min
- Simple Formatted Strings Video - 11 min
- Formatted Strings - 5 min
- Arithmetic with Strings Video - 4 min
---
## Strings - Quiz & Problems
Strings Problems ( 17 min)
- Strings? Quiz - 5 min
- Hello, Eggs And Spam - 1 min
- Multiline Strings - 1 min
- Concatenate Names - 1 min
- Fun With Strings - 5 min
- Same Number of Characters? - 2 min
- Format Name - 2 min
---
## Boolean - Reading
Boolean ( 5 min)
- Boolean Data Type - 5 min
---
## Boolean - Problems
Boolean ( 5 min)
- Numeric Equality - 1 min
- Not Equal - 1 min
- Using and - 1 min
---
## Numbers - Readings
Numbers ( 13 min)
- Number Data Type - 10 min
- NoneType Data Type - 1 min
---
## Numbers - Quiz & Problems
Number Problems ( 23 min)
- Arithmetic Operators Quiz - 5 min
- Adding Two Numbers - 1 min
- Plus, Minus, More - 5 min
- Return Next Number - 1 min
- Convert Minutes To Seconds - 1 min
- Livestock Legs - 5 min
- String to Integer - 2 min
---
## Variables - Reading, Video & Quiz
Variables ( 20 min)
- Variables - 5 min
- Python Basics - 7 min
- NoneType Variables Quiz - 5 min
---
## Operators - Reading
Operators ( 10 min)
- Comparison Operators - 5 min
- Identity vs. Equality - 5 min
- Skip videos for now
---
## Operators - Problems
Operators ( 5 min)
- Is Divisible By 5 - 1 min
- Calculate Exponent - 2 min
- Remainder of Two Numbers - 1 min
{"metaMigratedAt":"2023-06-16T03:42:38.102Z","metaMigratedFrom":"Content","title":"Welcome to Mod6!","breaks":false,"description":"Module Lead","contributors":"[{\"id\":\"dafd1858-850b-4d12-9d53-a1ac5e891cf8\",\"add\":3763,\"del\":1057},{\"id\":\"a6f34c0b-3567-4ed5-ba81-c2299c2d9369\",\"add\":3784,\"del\":5382},{\"id\":\"b3d4b64b-bcb9-47ce-975c-f84011d6c2f4\",\"add\":3159,\"del\":0},{\"id\":\"396fd5ac-100c-4999-bd4e-2df3f90ebd1c\",\"add\":4,\"del\":41},{\"id\":\"bbda4bdc-50a5-429e-9073-d74141f277f3\",\"add\":736,\"del\":1011}]"}