So you're ready to start your career in coding eh? It's gonna be fun. And exhausting. But we're gonna do it together! Your journey begins!
Congratulations for starting!
Sign up for our Solvestack Slack
π See you there! We'll guide you during the meetup or with literally ANY question you have about coding. We like to help each other get unstuck.
Join the #solvestack-bootcamp channel in our Solvestack slack.
Navigate to the PY101 course materials: https://drive.google.com/drive/folders/1FcXSrAl7eRY-WcO7_9s9pDFNTeXXWLo3. Request access and I will add you.
Send @anatomboulian your email address, first and last name in DM on slack and I will make a student account for you. You will receive an email with instructions on how to log in as follows:
Hi <Your Name Here>,
A new account has been created for you at 'Solvestack'
and you have been issued with a new temporary password.
Your current login information is now:
username: ana.student
password: ***********
(you will have to change your password
when you login for the first time)
To start using 'Solvestack', login at
https://portal.solvestack.com/login/?lang=en_us
In most mail programs, this should appear as a blue link
which you can just click on. If that doesn't work,
then cut and paste the address into the address
line at the top of your web browser window.
Cheers from the 'Solvestack' administrator,
Admin User
Once logged in, click you should be able to click "Site Home" and see a list of available courses. Click on "PY101 - Intro to Python" and click βEnroll me".
You're in!
On Windows: Navigate to the Windows Store and click Get Button
On Mac: Pyenv
On Linux: Pyenv
Find where your Python 3 got installed.
Open your terminal, command prompt, or Powershell and run python
or python3
.
- Create your account at github.com
- Find your username by clicking your avatar in the the top righthand corner
- DM one of the mentors above your github username on Slack
- Accept the organization invite by going to https://github.com/settings/organizations and clicking Accept
Go to https://github.com/settings/tokens/new and add a new "Classic" personal access token.
Give it the following scope:
- repo
Copy this generated token and place it somewhere important and safe, like a password manager.
Once you have accepted your organization invite to Solvestack, navigate to the following repository on GitHub: https://github.com/SolveStack/bootcamp-PY101-auto-app
If you see a comical 404 page like the one below, you must DM to ask one of the mentors above for access to the repository via Slack.
If you see a file/folder structure, README.md and a green Code button on the righthand side, you have the proper access, and may continue.
A code repository (repo for short) is a folder containing code housed on servers from Github. There are other source control providers but the most popular one is Github. In order to open the code for use on your machine, you must download the code to physically store on your machine in a folder. As a developer, the most common way to do this is to clone the repository.
Now you must install Git if necessary:
- On Mac: install Xcode Command Line Tools.
- On Windows machine: install Git Bash for Windows.
In order to clone the repository, you must open your Terminal. Here's how to open your terminal with Git access:
- On Mac: β + spacebar, type in "Terminal", hit enter
- On Windows: Windows key or Ctrl + Esc: Open Start menu. Type in "Git Bash", hit enter
Once you have opened your terminal with Git access, navigate to your workspace folder in your home directory, something like:
cd ~ # change directory into your home folder
mkdir git # if this is the first time you are creating your workspace folder
cd git # change directory into your new workspace folder called git
- Clone the repo:
git clone https://github.com/SolveStack/bootcamp-PY101-auto-app.git
Output looks like this:
Cloning into 'bootcamp-PY101-auto-app'...
Username for 'https://github.com': redacted
Password for 'https://<your-username-shows-here>@github.com':
When it asks for your password, give it your Personal Access Token you copied from Step 4:
remote: Enumerating objects: 158, done.
remote: Counting objects: 100% (158/158), done.
remote: Compressing objects: 100% (89/89), done.
remote: Total 158 (delta 79), reused 136 (delta 64), pack-reused 0
Receiving objects: 100% (158/158), 31.83 KiB | 434.00 KiB/s, done.
Resolving deltas: 100% (79/79), done.
If you get a prompt like this one, hit "Install":
Change directory into the newly cloned repo:
cd bootcamp-PY101-auto-app
git checkout starting-point
Download Visual Studio Code if you don't already have it: https://code.visualstudio.com/download
Then, open Visual Studio code, and click Open...
Navigate to the bootcamp-PY101-auto-app folder. Navigate to it like so: home -> git -> bootcamp-PY101-auto-app. Click open.
Open the README.md for bootcamp-PY101-auto-app from here to set up your debugger.
Here is the syllabus:
- What is Programming?
- Datatypes
- Using the REPL
- Using files (scripts)
- No homework yet
Lesson: Variables, Operators and Comments
- Variables
- Operators
- Comments
- Homework
Loesson - Intro to Collections
- Lists
- Slices
- Homework
Lesson - Finish Lists, Intro to Functions
- List methods
- Copying lists
- Functions Intro
- Homework
- Review of Dictionaries
- Add to a dictionary
- Modify a value of a dictionary
- Delete a key-value pair from a dictionary
- Looping through a dictionary
- Copy a dictionary
- Nested dictionaries
- Homework
- Accessing Tuple Items
- Updating Tuples
- Unpacking Tuples
- Loop through a Tuple
- Joining Tuples
- Homework
- Access Set Items
- Add Set Items
- Remove Set Items
- Loop Sets
- Join Sets
- No homework
- Lesson - Classes
- Classes Intro
- Lesson - Classes
- Git, Github Intro
- Install Git if you're on Windows or Linux
- Classes continued
- Prompt for user input
- Defensive coding with try/except logic
- Catching different kinds of exceptions
- Learning Git
git status
to see what changes you have currently, your branch name, etc. Use this all the time!git log --graph --oneline --branches
to see how your remote branches (origin/) and your current branch aligngit add -p
to review your own codegit add <new_file_name>.py
orgit add <folder_name>
for untracked filesgit commit
to make a commit hash and save your changes to the branchgit push origin <branch-name>
to push your changesgit fetch
to get branch reference (commit hash) updatesgit checkout <branch-name>
to check out from an existing branch (can be local or remote)git pull origin <branch-name>
to get upstream updates from the branch you're on
File Handling
- Install a pip Package
- Open a file for read or writing
- Close the file
- Dates and datetimes
- Python Math module
- Global Scope
- Command Line Interface
Packages and PIP