From 21cabfbdff22abd35e613f13ae5acddf9d897384 Mon Sep 17 00:00:00 2001 From: Anthony Date: Wed, 18 Mar 2020 18:09:05 -0700 Subject: [PATCH 1/3] Started work on 101 --- .gitignore | 1 + .idea/.gitignore | 2 -- .idea/IntroToProgramming.iml | 12 ------------ .idea/inspectionProfiles/profiles_settings.xml | 6 ------ .idea/misc.xml | 7 ------- .idea/modules.xml | 8 -------- .idea/vcs.xml | 6 ------ readme.md | 18 ++++++++---------- 8 files changed, 9 insertions(+), 51 deletions(-) create mode 100644 .gitignore delete mode 100644 .idea/.gitignore delete mode 100644 .idea/IntroToProgramming.iml delete mode 100644 .idea/inspectionProfiles/profiles_settings.xml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/vcs.xml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..62c8935 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea/ \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index e7e9d11..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -# Default ignored files -/workspace.xml diff --git a/.idea/IntroToProgramming.iml b/.idea/IntroToProgramming.iml deleted file mode 100644 index 8b8c395..0000000 --- a/.idea/IntroToProgramming.iml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml deleted file mode 100644 index 105ce2d..0000000 --- a/.idea/inspectionProfiles/profiles_settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 8656114..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 5834ea1..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/readme.md b/readme.md index bbe46b5..4a10c18 100644 --- a/readme.md +++ b/readme.md @@ -1,20 +1,18 @@ -# Intro to Programming +# Intro to Programming 101 **Distance Learners**: Please read [this document](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/documentation/distance.md) before starting class. ## Syllabus Overview While we don't expect you to complete all the advance versions of the labs, we expect you to give it a try and ask questions if you're stuck. -| Unit | Concepts | Labs | Video | -| ---- |----------| -----| ------| +| Unit | Concepts | Labs | Excercise | Video | +| ---- |----------| -----| --------- | ----- | | [Unit 00](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_00.md) | Software Install | Lab [0](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab00-newfolder.md) -| [Unit 01](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_01.md) | comments, variables, print(), fstrings, Strings, concatentate, input() | Lab [1](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab01-hello.md), [2](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab02-madlib.md) | [video](https://www.youtube.com/watch?v=hV8EVnVCAs4) -| [Unit 02](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_02.md) | Lists, Random module, integers, operators, conditional statements (if/else) | Lab [3](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab03-magic_8_ball.md), [4](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab04-grading.md) | [video](https://www.youtube.com/watch?v=RRv3ynskWm0) -| [Unit 03](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_03.md) | loops: while, break, else, for each, for x in range(), continue | Lab [5](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab05-emoticon.md), [6](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab06-rock_paper_scissors.md) | [video](https://www.youtube.com/watch?v=lSykW7worZc) -| [Unit 04](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_04.md) | Review of Units 1-3, String Module | Lab [7](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab07-guess_the_number.md), [8](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab08-password_generator.md) | [video](https://youtu.be/XJaSQdTQ6VE) -| [Unit 05](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_05.md) | Dictionaries, Functions | Lab [12](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab12-unit_converter.md) | [video](https://youtu.be/U47-2E9izvE) -| [Unit 06](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_06.md) | built-in functions, string methods, list methods, functions (review) | Lab [10](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab10-anagram_checker.md) | [video](https://youtu.be/NvRxXklmx3s) - +| [Unit 01](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_01.md) | comments, variables, print(), fstrings, Strings, concatentate, input() | Lab [1](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab01-hello.md), [2](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab02-madlib.md) | | [video](https://www.youtube.com/watch?v=hV8EVnVCAs4) +| [Unit 02](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_02.md) | Lists, Random module, integers, operators, conditional statements (if/else) | Lab [3](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab03-magic_8_ball.md), [4](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab04-grading.md) | | [video](https://www.youtube.com/watch?v=RRv3ynskWm0) +| [Unit 03](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_03.md) | loops: while, break, else, for each, for x in range(), continue | Lab [5](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab05-emoticon.md), [6](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab06-rock_paper_scissors.md) | | [video](https://www.youtube.com/watch?v=lSykW7worZc) +| [Unit 04](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_04.md) | String Module | Lab [7](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab07-guess_the_number.md), [8](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab08-password_generator.md) | | [video](https://youtu.be/XJaSQdTQ6VE) +| [Unit 05](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_05.md) | Dictionaries, Functions | Lab [12](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab12-unit_converter.md) | | [video](https://youtu.be/U47-2E9izvE) ## Quick Links Below is a list of helpful links. From 81e83ee3d1e67f981b4a88aad66ff9d4d7a9915b Mon Sep 17 00:00:00 2001 From: Anthony Date: Fri, 10 Apr 2020 16:34:00 -0700 Subject: [PATCH 2/3] Updated readme and added excercise 1 --- excercises/excercise1.md | 0 readme.md | 42 ++++++++++++++++++++-------------------- 2 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 excercises/excercise1.md diff --git a/excercises/excercise1.md b/excercises/excercise1.md new file mode 100644 index 0000000..e69de29 diff --git a/readme.md b/readme.md index 4a10c18..8e15f75 100644 --- a/readme.md +++ b/readme.md @@ -5,29 +5,29 @@ ## Syllabus Overview While we don't expect you to complete all the advance versions of the labs, we expect you to give it a try and ask questions if you're stuck. -| Unit | Concepts | Labs | Excercise | Video | -| ---- |----------| -----| --------- | ----- | -| [Unit 00](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_00.md) | Software Install | Lab [0](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab00-newfolder.md) -| [Unit 01](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_01.md) | comments, variables, print(), fstrings, Strings, concatentate, input() | Lab [1](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab01-hello.md), [2](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab02-madlib.md) | | [video](https://www.youtube.com/watch?v=hV8EVnVCAs4) -| [Unit 02](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_02.md) | Lists, Random module, integers, operators, conditional statements (if/else) | Lab [3](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab03-magic_8_ball.md), [4](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab04-grading.md) | | [video](https://www.youtube.com/watch?v=RRv3ynskWm0) -| [Unit 03](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_03.md) | loops: while, break, else, for each, for x in range(), continue | Lab [5](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab05-emoticon.md), [6](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab06-rock_paper_scissors.md) | | [video](https://www.youtube.com/watch?v=lSykW7worZc) -| [Unit 04](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_04.md) | String Module | Lab [7](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab07-guess_the_number.md), [8](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab08-password_generator.md) | | [video](https://youtu.be/XJaSQdTQ6VE) -| [Unit 05](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_05.md) | Dictionaries, Functions | Lab [12](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab12-unit_converter.md) | | [video](https://youtu.be/U47-2E9izvE) +| Unit | Concepts | Labs | Excercise | Video | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | --------- | ----- | +| [Unit 00](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_00.md) | Install: python, vs code; intro to terminal | [Lab 0](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab00-newfolder.md) | +| [Unit 01](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_01.md) | Terminal, Comments, print(), strings, concatenate | [Lab 1](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab01-hello.md) | | +| [Unit 02](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_02.md) | Variables, fstrings, input(), random module, integers, operators | [Lab 2](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab03-magic_8_ball.md) | | +| [Unit 03](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_03.md) | Conditional Statements, Logic Statements | [Lab 3](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab05-emoticon.md) | | +| [Unit 04](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_04.md) | Lists, random.choice(), for each, for x in range(), break, continue | [Lab 4](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab07-guess_the_number.md) | | +| [Unit 05](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/units/unit_05.md) | String module, while, while else, term color module | [Lab 5](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/labs/lab12-unit_converter.md) | | ## Quick Links Below is a list of helpful links. -| Resource | Link | Comment | -| ------- |----------| -----| -Live stream | [Twich](https://www.twitch.tv/pdxcodeguild/videos)| Only when class is in session -Class Chatroom | [Slack](https://app.slack.com/client/TH5A28SJ0/CH6DE8QK1) | for enrolled Intro students only. [directions on how to use slack](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/documentation/slack.md) -Terminal Cheatsheet | [Google Sheets](https://docs.google.com/spreadsheets/d/18WWrry7RI2zzJlTsUHQLCsElNjiVVuMGjowBKZ5DPH8/edit#gid=0) | Command Prompt/Terminal/Powershell -VS Code Keyboard ShortCuts | [For Windows](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf) | -VS Code Keyboard ShortCuts | [For macOS](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf) | -Python Tutor | [Python Tutor](http://pythontutor.com/visualize.html#mode=edit) | online debugging tool -Stuck? | [Debugging Errors Guide](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/documentation/troubleshooting.md) | -Online Code Editor | [Repl](https://repl.it) | cloud based editor and interpreter -Compare two code snippets | [DiffChecker](https://www.diffchecker.com/) | great tool to compare 2 files of code side by side| -Learning Resources | [Guide](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/documentation/resources.md) -Future Intro Classes | [Eventbrite](https://www.eventbrite.com/o/pdx-code-guild-17959456298) | +| Resource | Link | Comment | +| -------------------------- | ------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Live stream | [Twich](https://www.twitch.tv/pdxcodeguild/videos) | Only when class is in session | +| Class Chatroom | [Slack](https://app.slack.com/client/TH5A28SJ0/CH6DE8QK1) | for enrolled Intro students only. [directions on how to use slack](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/documentation/slack.md) | +| Terminal Cheatsheet | [Google Sheets](https://docs.google.com/spreadsheets/d/18WWrry7RI2zzJlTsUHQLCsElNjiVVuMGjowBKZ5DPH8/edit#gid=0) | Command Prompt/Terminal/Powershell | +| VS Code Keyboard ShortCuts | [For Windows](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf) | +| VS Code Keyboard ShortCuts | [For macOS](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf) | +| Python Tutor | [Python Tutor](http://pythontutor.com/visualize.html#mode=edit) | online debugging tool | +| Stuck? | [Debugging Errors Guide](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/documentation/troubleshooting.md) | +| Online Code Editor | [Repl](https://repl.it) | cloud based editor and interpreter | +| Compare two code snippets | [DiffChecker](https://www.diffchecker.com/) | great tool to compare 2 files of code side by side | +| Learning Resources | [Guide](https://github.com/PdxCodeGuild/IntroToProgramming/blob/master/documentation/resources.md) | +| Future Intro Classes | [Eventbrite](https://www.eventbrite.com/o/pdx-code-guild-17959456298) | [Back to top](#top) From b6a97d0a736d1eebfa07a4b48090e382e1984160 Mon Sep 17 00:00:00 2001 From: Anthony Date: Fri, 10 Apr 2020 16:35:19 -0700 Subject: [PATCH 3/3] forgot to save ._. --- excercises/excercise1.md | 15 +++++++++++++++ units/unit_01.md | 24 +++++++++++++++--------- 2 files changed, 30 insertions(+), 9 deletions(-) diff --git a/excercises/excercise1.md b/excercises/excercise1.md index e69de29..ed80736 100644 --- a/excercises/excercise1.md +++ b/excercises/excercise1.md @@ -0,0 +1,15 @@ +# Excercise 1: File Structure + +### We are going to create the file structure needed for the course. This will consist of 6 folder total. 1 to hold all of our units, and 1 for each unit (adding up to 5). This will help us keep organized and allow us to practice with the terminal. + +## Directions: +1. Open your Terminal / Command Prompt / or Power Shell +2. Navigate to your desktop (Or a place where you want to keep your files) using `cd \`. You can also use ls to list the folders in your current directory to help you navigate. +3. Use `mkdir` to create your first folder. I recommend something like pdx_code. +4. Now change directories into the folder you just created. +5. Use `mkdir` to make a folder for each unit in the course. You will need to do this 5 times. I reccomend calling them unit_1, unit_2 and so on. +6. Thats it! We are done! Now take a screen shot of your 5 unit folders so you can submit this excercise. + +If done correctly your terminal should look like this when you use the command `ls`: + +And your finder/file explorer should look like: diff --git a/units/unit_01.md b/units/unit_01.md index 94bf669..a53dda3 100644 --- a/units/unit_01.md +++ b/units/unit_01.md @@ -2,16 +2,22 @@ [Back to Syllabus](https://github.com/PdxCodeGuild/IntroToProgramming#top) ## Table of Contents -- [Comments](#comments) -- [variables](#variables) -- [print() / f-strings](#print) -- [Datatype: Strings](#strings) -- [String Concatenation](#concatenating) -- [input()](#input) +- [Terminal / Command Prompt / Power Shell](#terminal) -### Comments -- [Quick overview](https://www.w3schools.com/python/python_comments.asp) -- Complete [Exercise 2](https://shop.learncodethehardway.org/paid/python3/ex2.html) of Learn Python the Hard Way +### Terminal + | Windows | Mac/Linux | Action | + | --- | --- | --- | + | pwd | cd | What is my current directory? | + | dir | ls | What is in this folder? | + | cd \ | cd \ | Change directory to \ | + | cd .. | cd .. | Change directory to parent directory | + | cls | clear | Clear screen | + | mkdir \ | mkdir \ | Make directory \ | + | rmdir \ | rmdir \ | Remove directory \ | + | py \ | python3 \ | Run python file in terminal | + | ctrl + c | ctrl + c | Terminate program | + | py | python3 | Start python interpreter | +- [Want more?](https://www.w3schools.com/python/python_comments.asp) ### Variables - Complete [Exercise 4](https://learnpythonthehardway.org/python3/ex4.html) of Learn Python the Hard Way