diff --git a/Python Absolute Beginner/Module_1.0_Tutorials_START_HERE.ipynb b/Python Absolute Beginner/Module_1.0_Tutorials_START_HERE.ipynb index 2bc888c..3e64c90 100644 --- a/Python Absolute Beginner/Module_1.0_Tutorials_START_HERE.ipynb +++ b/Python Absolute Beginner/Module_1.0_Tutorials_START_HERE.ipynb @@ -1,6 +1,7 @@ { "cells": [ { + "attachments": {}, "cell_type": "markdown", "metadata": { "slideshow": { @@ -43,7 +44,7 @@ "# Watch this video walkthrough as you work\n", "## The big green circle play icon below links to a video walkthrough of this tutorial\n", "When you see a video walkthrough in the tutorials, click on it and watch it as you work to have a guided lesson on how to complete the tasks and learn the materials. This walkthrough covers tasks 1-5.\n", - "[![view video](https://openclipart.org/download/219326/1432343177.svg)](https://youtu.be/iPU4aJEylEA)" + "[![view video](extras/green-play-button.svg)](https://youtu.be/iPU4aJEylEA)" ] }, { @@ -643,6 +644,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": { "slideshow": { @@ -661,7 +663,7 @@ "license_plate = \"123A\" #license_plate initialized as a string\n", "```\n", "# Walkthrough video for tasks 6-12\n", - "[![view video](https://openclipart.org/download/219326/1432343177.svg)](https://youtu.be/y59XBWNTM_Y)\n", + "[![view video](extras/green-play-button.svg)](https://youtu.be/y59XBWNTM_Y)\n", "\n", "### Variables can start initialized as an Integer number data type \n", ">```python \n", @@ -3352,7 +3354,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.8" + "version": "3.11.2" } }, "nbformat": 4, diff --git a/Python Absolute Beginner/Module_1.2_Required_Code.ipynb b/Python Absolute Beginner/Module_1.2_Required_Code.ipynb index 8aa04ba..fad8bce 100644 --- a/Python Absolute Beginner/Module_1.2_Required_Code.ipynb +++ b/Python Absolute Beginner/Module_1.2_Required_Code.ipynb @@ -1,6 +1,7 @@ { "cells": [ { + "attachments": {}, "cell_type": "markdown", "metadata": { "collapsed": true @@ -8,6 +9,9 @@ "source": [ "# Module 1 Required Coding Activity \n", "Work through the Module 1 Tutorials and Practices prior to attempting this activity.\n", + "Notice that this activity is logically very similar to the Allergy Check activity in the practice module.\n", + "Remmeber, you are not allowed to work with others on this code or post it in Teams for help.\n", + "You can ask related questions about the practice module.\n", "\n", "> **NOTE:** This program requires print output and code syntax used in module 1\n", "\n", @@ -16,15 +20,16 @@ "| **NOTE:** This program requires `print` output and using code syntax used in module 1 such as variable assignment, `input`, `in` keyword, `.lower()` or `.upper()` method | \n", "\n", "\n", - "## Program: Allergy Check \n", + "## Program: Name Check \n", "\n", - "1. **[ ]** get user **`input`** for categories of food eaten in the last 24 hours \n", + "1. **[ ]** get user **`input`** for names of people met in the last 24 hours \n", " save in a variable called **input_test** \n", - "2. **[ ]** print **`True`** if \"dairy\" is in the **input_test** string \n", + "2. **[ ]** print **`True`** if \"John\" is in the **input_test** string \n", "3. **[ ]** Test the code so far \n", - "4. **[ ]** repeat the process checking the input for \"nuts\", **challenge** add \"Seafood\" and \"chocolate\" \n", + "4. **[ ]** repeat the process checking the input for your name, \n", + "5. **[ ] challenge:** add two more names \n", "5. **[ ]** Test your code \n", - "6. **[ ] challenge:** make your code work for input regardless of case, e.g. - print **`True`** for \"Nuts\", \"NuTs\", \"NUTS\" or \"nuts\" \n" + "6. **[ ] challenge:** make your code work for input regardless of case, e.g. - print **`True`** for \"mary\", \"Mary\", \"MARY\" or \"MaRy\" \n" ] }, { @@ -35,27 +40,22 @@ }, "outputs": [], "source": [ - "# Create Allergy check code\n", + "# Create name check code\n", "\n", "# [ ] get input for input_test variable\n", "\n", - "# [ ] print \"True\" message if \"dairy\" is in the input or False message if not\n", + "# [ ] print \"True\" message if \"John\" is in the input or False message if not\n", "\n", "\n", - "# [ ] print True message if \"nuts\" is in the input or False if not\n", + "# [ ] print True message if your name is in the input or False if not\n", "\n", "\n", - "# [ ] Challenge: Check if \"seafood\" is in the input - print message\n", + "# [ ] Challenge: Check if another person's name is in the input - print message\n", "\n", "\n", - "# [ ] Challenge: Check if \"chocolate\" is in the input - print message" + "# [ ] Challenge: Check if a fourth person's name is in the input - print message" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [] - }, { "cell_type": "markdown", "metadata": {}, diff --git a/Python Absolute Beginner/Module_2.0_Tutorials_Functions.ipynb b/Python Absolute Beginner/Module_2.0_Tutorials_Functions.ipynb index 9a48c57..710faac 100644 --- a/Python Absolute Beginner/Module_2.0_Tutorials_Functions.ipynb +++ b/Python Absolute Beginner/Module_2.0_Tutorials_Functions.ipynb @@ -30,7 +30,7 @@ "## Calling Functions with Arguments: print() is a function built in to Python!\n", "Functions are used for code tasks that are intended to be reused. For example, you have already used the print() function and passed it **arguments** by putting strings and variables into its parentheses. \n", "\n", - "[![view video](https://openclipart.org/download/219326/1432343177.svg)](https://youtu.be/4mE3mL6oQX0)\n", + "[![view video](extras/green-play-button.svg)](https://youtu.be/4mE3mL6oQX0)\n", "\n", "Python allows us to create **User Defined Functions** and provides many **Built-in Functions** such as **`print()`** \n", "- **`print()`** can be called using arguments (or without) and sends text to standard output, such as the console. \n", diff --git a/Python Absolute Beginner/Module_2.2_Required_Code.ipynb b/Python Absolute Beginner/Module_2.2_Required_Code.ipynb index cb66fb4..4862eb7 100644 --- a/Python Absolute Beginner/Module_2.2_Required_Code.ipynb +++ b/Python Absolute Beginner/Module_2.2_Required_Code.ipynb @@ -1,6 +1,7 @@ { "cells": [ { + "attachments": {}, "cell_type": "markdown", "metadata": { "collapsed": true @@ -18,7 +19,9 @@ "- **fishstore returns a string in sentence form** \n", "- **gather input for fish_entry and price_entry to use in calling fishstore()**\n", "- **print the return value of fishstore()**\n", - ">example of output: **`Fish Type: Guppy costs $1`**" + "- **the final print statement must include your full name**\n", + "\n", + ">example of output: **`Report for [YOUR FULL NAME GOES HERE]. Fish Type: Guppy costs $1`**" ] }, { diff --git a/Python Absolute Beginner/Module_3.0_Tutorials_Conditionals.ipynb b/Python Absolute Beginner/Module_3.0_Tutorials_Conditionals.ipynb index ac4b9f6..4e9f29a 100644 --- a/Python Absolute Beginner/Module_3.0_Tutorials_Conditionals.ipynb +++ b/Python Absolute Beginner/Module_3.0_Tutorials_Conditionals.ipynb @@ -32,7 +32,7 @@ " - **`pass`** \n", "## Watch the Walkthrough Video for this Notebook by Clicking Below\n", " \n", - "[![view video](https://openclipart.org/download/219326/1432343177.svg)]( https://www.youtube.com/watch?v=ui9VZ9tmgyE)" + "[![view video](extras/green-play-button.svg)]( https://www.youtube.com/watch?v=ui9VZ9tmgyE)" ] }, { diff --git a/Python Absolute Beginner/Module_3.2_Required_Code.ipynb b/Python Absolute Beginner/Module_3.2_Required_Code.ipynb index 810e864..9b185a6 100644 --- a/Python Absolute Beginner/Module_3.2_Required_Code.ipynb +++ b/Python Absolute Beginner/Module_3.2_Required_Code.ipynb @@ -1,6 +1,7 @@ { "cells": [ { + "attachments": {}, "cell_type": "markdown", "metadata": { "collapsed": true @@ -11,9 +12,10 @@ "\n", "This is an activity based on code similar to the Jupyter Notebook **`Practice_MOD03_1-4_IntroPy.ipynb`** and **`Practice_MOD03_1-5_IntroPy.ipynb`** which you may have completed as practice.\n", "\n", - "> **NOTE:** This program requires the use of **`if, elif, else`**, and casting between strings and numbers. The program should use the various code syntax covered in module 3. \n", - "> \n", + ">This program requires the use of **`if, elif, else`**, and casting between strings and numbers. The program should use the various code syntax covered in module 3. \n", + "> \n", ">The program must result in print output using numeric input similar to that shown in the sample below.\n", + ">You must include your full name in the input prompt. See sample input below for more detail.\n", "\n", "## Program: Cheese Order Function \n", "- define function with max, min, price, and order_amount parameters\n", @@ -29,17 +31,17 @@ "\n", "Sample input and output:\n", "```\n", - "Enter cheese order weight (numeric value): 113\n", + "[YOUR FULL NAME GOES HERE], enter cheese order weight (numeric value): 113\n", "113.0 is more than currently available stock\n", "```\n", "\n", "```\n", - "Enter cheese order weight (numeric value): .15\n", + "[YOUR FULL NAME GOES HERE], enter cheese order weight (numeric value): .15\n", "0.15 is below minimum order amount\n", "``` \n", "\n", "```\n", - "Enter cheese order weight (numeric value): 2\n", + "[YOUR FULL NAME GOES HERE], enter cheese order weight (numeric value): 2\n", "2.0 costs $15.98\n", "``` " ] @@ -52,7 +54,7 @@ }, "outputs": [], "source": [ - "# [ ] create, call and test \n" + "# [ ] create fucntion, call and test \n" ] }, { diff --git a/Python Absolute Beginner/Module_4.0_Tutorials_Nested_Conditionals.ipynb b/Python Absolute Beginner/Module_4.0_Tutorials_Nested_Conditionals.ipynb index 439b03b..6712dca 100644 --- a/Python Absolute Beginner/Module_4.0_Tutorials_Nested_Conditionals.ipynb +++ b/Python Absolute Beginner/Module_4.0_Tutorials_Nested_Conditionals.ipynb @@ -22,7 +22,7 @@ " Concepts\n", "## nested conditionals\n", "\n", - "[![view video](https://openclipart.org/download/219326/1432343177.svg)](https://youtu.be/BafLWo66zUE)\n", + "[![view video](extras/green-play-button.svg)](https://youtu.be/BafLWo66zUE)\n", "\n", "### Making a sandwich\n", "Taking a sandwich order starts with sandwich choices:\n", diff --git a/Python Absolute Beginner/Module_4.2_Required_Code.ipynb b/Python Absolute Beginner/Module_4.2_Required_Code.ipynb index 99efa60..bcab89c 100644 --- a/Python Absolute Beginner/Module_4.2_Required_Code.ipynb +++ b/Python Absolute Beginner/Module_4.2_Required_Code.ipynb @@ -1,10 +1,11 @@ { "cells": [ { + "attachments": {}, + "cell_type": "markdown", "metadata": { "collapsed": true }, - "cell_type": "markdown", "source": [ "# Module 4 Required Coding Activity \n", "Introduction to Python Unit 1 \n", @@ -13,7 +14,7 @@ "\n", "| Some Assignment Requirements |\n", "|:-------------------------------|\n", - "|This program requires the use of
The program should **only** use code syntax covered in modules 1 - 4.

The program must result in printed message analysis of the input. |\n", + "|This program requires the use of
The program should **only** use code syntax covered in modules 1 - 4.

The program must result in printed message analysis of the input. Be sure to include your full name in the input prompt. See the sample input for more detail. |\n", "\n", "\n", " \n", @@ -34,9 +35,9 @@ "#### Sample input and output: \n", "enter nothing (twice) then enter a word \n", "```\n", - "enter word or integer: \n", - "enter word or integer: \n", - "enter word or integer: Hello\n", + "[YOUR FULL NAME GOES HERE], enter word or integer: \n", + "[YOUR FULL NAME GOES HERE], enter word or integer: \n", + "[YOUR FULL NAME GOES HERE], enter word or integer: Hello\n", "\"Hello\" is all alphabetical characters!\n", " \n", "``` \n", @@ -44,7 +45,7 @@ " \n", "alphabetical word input \n", "```\n", - "enter word or integer: carbonization\n", + "[YOUR FULL NAME GOES HERE], enter word or integer: carbonization\n", "\"carbonization\" is all alphabetical characters!\n", " \n", "``` \n", @@ -52,19 +53,17 @@ " \n", "numeric inputs\n", "```\n", - "enter word or integer: 30\n", + "[YOUR FULL NAME GOES HERE], enter word or integer: 30\n", "30 is a smaller number than expected\n", "\n", - "enter word or integer: 1024\n", + "[YOUR FULL NAME GOES HERE], enter word or integer: 1024\n", "1024 is a pretty big number\n", "``` \n", "----- \n", "\n", "\n", - "### loop until non-empty input is submitted \n", - "This diagram represents the input part of the assignment - it is the loop to keep prompting the user for input until they submit some input (non-empty). \n", - "\n", - "![image of while Loop with nested if statements described in bulleted text above](https://iajupyterprodblobs.blob.core.windows.net/imagecontainer/input_loop_sketch.png) \n", + "### Loop until non-empty input is submitted \n", + "In the input part of the assignment keep prompting the user for input until they submit some input (non-empty). \n", "\n", "Once the user gives input with characters use the input in calling the str_analysis() function.\n", "\n", @@ -83,23 +82,23 @@ ] }, { + "cell_type": "code", + "execution_count": null, "metadata": { "trusted": false }, - "cell_type": "code", + "outputs": [], "source": [ "# [ ] create, call and test the str_analysis() function \n", "\n", "\n", "\n", "\n" - ], - "execution_count": null, - "outputs": [] + ] }, { - "metadata": {}, "cell_type": "markdown", + "metadata": {}, "source": [ "Submit this by creating a python file (.py) and submitting it in D2L. Be sure to test that it works." ] @@ -107,23 +106,23 @@ ], "metadata": { "kernelspec": { - "name": "python3", "display_name": "Python 3", - "language": "python" + "language": "python", + "name": "python3" }, "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", "mimetype": "text/x-python", - "nbconvert_exporter": "python", "name": "python", - "file_extension": ".py", - "version": "3.5.4", + "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "codemirror_mode": { - "version": 3, - "name": "ipython" - } + "version": "3.5.4" } }, "nbformat": 4, "nbformat_minor": 1 -} \ No newline at end of file +} diff --git a/Python Absolute Beginner/Module_5_Required_FINAL_Project.ipynb b/Python Absolute Beginner/Module_5_Required_FINAL_Project.ipynb index 9aede88..ed8729a 100644 --- a/Python Absolute Beginner/Module_5_Required_FINAL_Project.ipynb +++ b/Python Absolute Beginner/Module_5_Required_FINAL_Project.ipynb @@ -1,6 +1,7 @@ { "cells": [ { + "attachments": {}, "cell_type": "markdown", "metadata": { "collapsed": true @@ -11,9 +12,15 @@ "\n", "Complete all tutorials, practices and required code in the course prior to attempting this activity.\n", "\n", - "| Some Assignment Requirements |\n", - "|:-------------------------------|\n", - "|This program requires the use of
The program should **only** use code syntax covered in modules 1 - 4.

The program must result in print output using the numeric input, similar to that shown in the samples displaying \"Items\" and \"Total\". |\n", + "**This program requires the use of:**\n", + "\n", + "
The program should **only** use code syntax covered in modules 1 - 4.
\n", + "
The program must result in print output using the numeric input, similar to that shown in the samples displaying \"Items\" and \"Total\". If must also have a statement after the Total row indicating who made the calculation. This name must be your full name. See the sample output for clarity.\n", "\n", "\n", "## Program: `adding_report()` function \n", @@ -44,6 +51,7 @@ "\n", "Total\n", " 111\n", + " Calculated by: [YOUR FULL NAME GOES HERE]\n", "``` \n", "\n", "call with \"T\"(print only the total) \n", @@ -55,6 +63,7 @@ "\n", "Total\n", " 12\n", + " Calculated by: [YOUR FULL NAME GOES HERE]\n", "``` \n", "\n", "\n", diff --git a/Python Absolute Beginner/.library.json b/Python Absolute Beginner/extras/.library.json similarity index 100% rename from Python Absolute Beginner/.library.json rename to Python Absolute Beginner/extras/.library.json diff --git a/Python Absolute Beginner/def calculate_tx(item,price,tax_rate):.py b/Python Absolute Beginner/extras/def calculate_tx(item,price,tax_rate):.py similarity index 100% rename from Python Absolute Beginner/def calculate_tx(item,price,tax_rate):.py rename to Python Absolute Beginner/extras/def calculate_tx(item,price,tax_rate):.py diff --git a/Python Absolute Beginner/extras/green-play-button.svg b/Python Absolute Beginner/extras/green-play-button.svg new file mode 100644 index 0000000..36c8f5f --- /dev/null +++ b/Python Absolute Beginner/extras/green-play-button.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/Python Absolute Beginner/req_code_file_ex.py b/Python Absolute Beginner/extras/req_code_file_ex.py similarity index 100% rename from Python Absolute Beginner/req_code_file_ex.py rename to Python Absolute Beginner/extras/req_code_file_ex.py diff --git a/Python Fundamentals/Module_1.0_Tutorials_Indexes_String_Sequences_Python_Fundamentals.ipynb b/Python Fundamentals/Module_1.0_Tutorials_Indexes_String_Sequences_Python_Fundamentals.ipynb index cddac59..8ebf101 100644 --- a/Python Fundamentals/Module_1.0_Tutorials_Indexes_String_Sequences_Python_Fundamentals.ipynb +++ b/Python Fundamentals/Module_1.0_Tutorials_Indexes_String_Sequences_Python_Fundamentals.ipynb @@ -32,7 +32,7 @@ "Iterables include data types and structures like strings, lists, tuples, dictionaries, and more. It is possible to even define your own. For more on iterables, see https://docs.python.org/3/glossary.html#term-iterable\n", "\n", "\n", - "[![view video](https://openclipart.org/download/219326/1432343177.svg)](https://youtu.be/wXKaSdVuK_I)\n", + "[![view video](extras/green-play-button.svg)](https://youtu.be/wXKaSdVuK_I)\n", "\n", "### addressing a string index\n", "Strings are sequences of characters. Another common sequence type used in this course is a **list**. Sequences index items counting from 0 for the first item.\n", diff --git a/Python Fundamentals/Module_1.2_Required_Code_Python_Fundamentals.ipynb b/Python Fundamentals/Module_1.2_Required_Code_Python_Fundamentals.ipynb index 246f53c..59b251a 100644 --- a/Python Fundamentals/Module_1.2_Required_Code_Python_Fundamentals.ipynb +++ b/Python Fundamentals/Module_1.2_Required_Code_Python_Fundamentals.ipynb @@ -1,6 +1,7 @@ { "cells": [ { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -11,14 +12,14 @@ "\n", "| Important Assignment Requirements | \n", "|:-------------------------------| \n", - "| **NOTE:** This program **requires** **`print`** output and using code syntax used in module 1 such as keywords **`for`**/**`in`** (iteration), **`input`**, **`if`**, **`else`**, **`.isalpha()`** method, **`.lower()`** or **`.upper()`** method | \n", + "| **NOTE:** This program **requires** a function, **`print`** output and using code syntax used in module 1 such as keywords **`for`**/**`in`** (iteration), **`input`**, **`if`**, **`else`**, **`.isalpha()`** method, **`.lower()`** or **`.upper()`** method. Also, ensure you include your full name in the prompt. See the sample input for more detail. | \n", "\n", "\n", "## Program: Words after \"G\"/\"g\"\n", "Create a program inputs a phrase (like a famous quotation) and prints all of the words that start with h-z\n", "\n", "Sample input: \n", - "`enter a 1 sentence quote, non-alpha separate words:` **`Wheresoever you go, go with all your heart`** \n", + "`Welcome, [YOUR NAME GOES HERE]. Enter a 1 sentence quote, non-alpha separate words:` **`Wheresoever you go, go with all your heart`** \n", "\n", "Sample output:\n", "```\n", @@ -28,7 +29,7 @@ "YOUR\n", "HEART\n", "``` \n", - "![words_after_g flowchart](https://ofl1zq-ch3302.files.1drv.com/y4msZuRt9FLMg2HrIVri9ozb5zM0Z9cwrgFg0OanRG3wThbKGRTjxf6vEmvDgiQzAthvLq4KDpiOfd5S74i-vsCDYha-Ea5B1d4MJD5tx6obEpFj3Slks3bCFbjltvV_BYQ8mlbmyoAhujPM6nHRbOxNeO2Lb6dvmW0EbS-D3QXR7lRb-whNWwquwwzO4znPMmQ4Jkf4ujqTlSpjGuaKzwTSQ?width=608&height=371&cropmode=none) \n", + "![words_after_g flowchart](images/words_after_gG.png) \n", "\n", "- split the words by building a placeholder variable: **`word`** \n", " - loop each character in the input string \n", @@ -60,7 +61,7 @@ "outputs": [], "source": [ "# [] create words after \"G\" following the Assignment requirements use of functions, menhods and kwyowrds\n", - "# sample quote \"Wheresoever you go, go with all your heart\" ~ Confucius (551 BC - 479 BC)\n", + "# Sample quote: \"Wheresoever you go, go with all your heart\" ~ Confucius (551 BC - 479 BC)\n", "\n", "\n", "\n" diff --git a/Python Fundamentals/Module_2.0_Tutorials_Sequence_Lists_Python_Fundamentals.ipynb b/Python Fundamentals/Module_2.0_Tutorials_Sequence_Lists_Python_Fundamentals.ipynb index c74cb5b..bebf6a9 100644 --- a/Python Fundamentals/Module_2.0_Tutorials_Sequence_Lists_Python_Fundamentals.ipynb +++ b/Python Fundamentals/Module_2.0_Tutorials_Sequence_Lists_Python_Fundamentals.ipynb @@ -29,7 +29,7 @@ "#  \n", " Concepts\n", "## Creating Lists\n", - "[![view video](https://openclipart.org/download/219326/1432343177.svg)]( https://youtu.be/RA1tMeHWjh0)\n", + "[![view video](extras/green-play-button.svg)]( https://youtu.be/RA1tMeHWjh0)\n", "A simple lists contains **comma separated** objects enclosed in **square brackets** \n", "```python\n", "empty_list = [ ]\n", diff --git a/Python Fundamentals/Module_2.2_Required_Code_Python_Fundamentals.ipynb b/Python Fundamentals/Module_2.2_Required_Code_Python_Fundamentals.ipynb index da8a1fe..0e3ca7b 100644 --- a/Python Fundamentals/Module_2.2_Required_Code_Python_Fundamentals.ipynb +++ b/Python Fundamentals/Module_2.2_Required_Code_Python_Fundamentals.ipynb @@ -1,6 +1,7 @@ { "cells": [ { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -11,7 +12,7 @@ "\n", "| Important Assignment Requirements | \n", "|:-------------------------------| \n", - "| **NOTE:** This program requires creating a function using **`def`** and **`return`**, using **`print`** output, **`input`**, **`if`**, **`in`** keywords, **`.append()`**, **`.pop()`**, **`.remove()`** list methods. As well as other standard Python | \n", + "| **NOTE:** This program requires creating a function using **`def`** and **`return`**, using **`print`** output, **`input`**, **`if`**, **`in`** keywords, **`.append()`**, **`.pop()`**, **`.remove()`** list methods. Be sure to include your full name in the prompts. See the example input below for more detail. | \n", "\n", "## Program: list-o-matic \n", "This program takes string input and checks if that string is in a list of strings \n", @@ -31,23 +32,23 @@ "\n", " *example input/output* \n", " ```\n", - "look at all the animals ['cat', 'goat', 'cat']\n", + "Welcome, [YOUR NAME GOES HERE]. Look at all the animals ['cat', 'goat', 'cat']\n", "enter the name of an animal: horse\n", "1 instance of horse appended to list\n", "\n", - "look at all the animals ['cat', 'goat', 'cat', 'horse']\n", + "Welcome, [YOUR NAME GOES HERE]. Look at all the animals ['cat', 'goat', 'cat', 'horse']\n", "enter the name of an animal: cat\n", "1 instance of cat removed from list\n", "\n", - "look at all the animals ['goat', 'cat', 'horse']\n", + "Welcome, [YOUR NAME GOES HERE]. Look at all the animals ['goat', 'cat', 'horse']\n", "enter the name of an animal: cat\n", "1 instance of cat removed from list\n", "\n", - "look at all the animals ['goat', 'horse']\n", + "Welcome, [YOUR NAME GOES HERE]. Look at all the animals ['goat', 'horse']\n", "enter the name of an animal: (<-- entered empty string)\n", "horse popped from list\n", "\n", - "look at all the animals ['goat']\n", + "Welcome, [YOUR NAME GOES HERE]. Look at all the animals ['goat']\n", "enter the name of an animal: (<-- entered empty string)\n", "goat popped from list\n", "\n", @@ -56,7 +57,7 @@ "\n", "*example 2*\n", "```\n", - "look at all the animals ['cat', 'goat', 'cat']\n", + "Welcome, [YOUR NAME GOES HERE]. Look at all the animals ['cat', 'goat', 'cat']\n", "enter the name of an animal: Quit\n", "Goodbye!\n", "``` \n", @@ -65,13 +66,14 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [ - "# [] create list-o-matic\n", + "# [] create list-o-matic as a fucntion and call it\n", + "# [] you are welcome to use any list you like for list-o-matic, does not have to be animals \n", "\n", "\n", "\n" diff --git a/Python Fundamentals/Module_3.2_Required_Code_Python_Fundamentals.ipynb b/Python Fundamentals/Module_3.2_Required_Code_Python_Fundamentals.ipynb index dcc1a9a..7d8bd8d 100644 --- a/Python Fundamentals/Module_3.2_Required_Code_Python_Fundamentals.ipynb +++ b/Python Fundamentals/Module_3.2_Required_Code_Python_Fundamentals.ipynb @@ -1,6 +1,7 @@ { "cells": [ { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -11,7 +12,7 @@ "\n", "| Assignment Requirements | \n", "|:-------------------------------| \n", - "| **NOTE:** This program requires **`print`** output and using code syntax used in module 3: **`if`**, **`input`**, **`def`**, **`return`**, **`for`**/**`in`** keywords, **`.lower()`** and **`.upper()`** method, **`.append`**, **`.pop`**, **`.split`** methods, **`range`** and **`len`** functions | \n", + "| **NOTE:** This program requires **`print`** output and using code syntax used in module 3: **`if`**, **`input`**, **`def`**, **`return`**, **`for`**/**`in`** keywords, **`.lower()`** and **`.upper()`** method, **`.append`**, **`.pop`**, **`.split`** methods, **`range`** and **`len`** functions. You must include your full name in the initial prompt. See the sample input and output for more detail. | \n", "\n", "## Program: poem mixer \n", "This program takes string input and then prints out a mixed order version of the string \n", @@ -45,7 +46,7 @@ "\n", " **input example** *(beginning of William Blake poem, \"The Fly\")*\n", "\n", - " >enter a saying or poem: `Little fly, Thy summer’s play My thoughtless hand Has brushed away. Am not I A fly like thee? Or art not thou A man like me?` \n", + " >Welcome [YOUR NAME GOES HERE] enter a saying or poem: `Little fly, Thy summer’s play My thoughtless hand Has brushed away. Am not I A fly like thee? Or art not thou A man like me?` \n", "\n", "\n", "**output example** \n", @@ -67,13 +68,14 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [ - "# [] create poem mixer\n", + "# [] create poem mixer function, call the function with the provided test string\n", + "# [] test string: `Little fly, Thy summer’s play My thoughtless hand Has brushed away. Am not I A fly like thee? Or art not thou A man like me?` \n", "\n", "\n", "\n" diff --git a/Python Fundamentals/Module_4.2_Required_Code_Python_Fundamentals.ipynb b/Python Fundamentals/Module_4.2_Required_Code_Python_Fundamentals.ipynb index e7b6983..036eed9 100644 --- a/Python Fundamentals/Module_4.2_Required_Code_Python_Fundamentals.ipynb +++ b/Python Fundamentals/Module_4.2_Required_Code_Python_Fundamentals.ipynb @@ -1,6 +1,7 @@ { "cells": [ { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -11,7 +12,7 @@ "\n", "| **Assignment Requirements** | \n", "|:-------------------------------| \n", - "| **NOTE:** This program requires **`print`** output and code syntax used in module 4 such as variable assignment, **`while`**, **`open`** keywords, **`.split()`**, **`.readline()`**, **`.seek()`**, **`.write()`**, **`.close()`** methods | \n", + "| **NOTE:** This program requires **`print`** output and code syntax used in module 4 such as variable assignment, **`while`**, **`open`** keywords, **`.split()`**, **`.readline()`**, **`.seek()`**, **`.write()`**, **`.close()`** methods. You must include your full name in the output. See the sample output for more detail. | \n", "\n", "## The Weather\n", "#### Create a program that: \n", @@ -21,6 +22,7 @@ "\n", "**Output:** The output should resemble the following\n", "```\n", + "[YOUR NAME GOES HERE]\n", "City of Beijing month ave: highest high is 30.9 Celsius\n", "City of Cairo month ave: highest high is 34.7 Celsius\n", "City of London month ave: highest high is 23.5 Celsius\n", diff --git a/Python Fundamentals/Module_5.0_Required_FINAL_Project_Python_Fundamentals.ipynb b/Python Fundamentals/Module_5.0_Required_FINAL_Project_Python_Fundamentals.ipynb index 4833898..6edb402 100644 --- a/Python Fundamentals/Module_5.0_Required_FINAL_Project_Python_Fundamentals.ipynb +++ b/Python Fundamentals/Module_5.0_Required_FINAL_Project_Python_Fundamentals.ipynb @@ -1,6 +1,7 @@ { "cells": [ { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -10,7 +11,7 @@ "\n", "| **Assignment Requirements** |\n", "|:-------------------------------|\n", - "|This program requires the use of **`print`** output and use of **`input`**, **`for`**/**`in`** loop, **`if`**, file **`open`**, **`.readline`**, **`.append`**, **`.strip`**, **`len`**. and function **`def`** and **`return`**. The code should also consider using most of the following (`.upper()` or `.lower()`, `.title()`, `print(\"hello\",end=\"\")` `else`, `elif`, `range()`, `while`, `.close()`) |\n", + "|This program requires the use of **`print`** output and use of **`input`**, **`for`**/**`in`** loop, **`if`**, file **`open`**, **`.readline`**, **`.append`**, **`.strip`**, **`len`**. and function **`def`** and **`return`**. The code should also consider using most of the following (`.upper()` or `.lower()`, `.title()`, `print(\"hello\",end=\"\")` `else`, `elif`, `range()`, `while`, `.close()`). You must include your full name in the initial prompt. See the sample input and output for more detail. |\n", "\n", "\n", "## Program: Element_Quiz \n", @@ -19,7 +20,7 @@ "\n", "### Sample input and output: \n", "```\n", - "list any 5 of the first 20 elements in the Period table\n", + "Welcome [YOUR NAME GOES HERE] list any 5 of the first 20 elements in the Period table\n", "Enter the name of an element: argon\n", "Enter the name of an element: chlorine\n", "Enter the name of an element: sodium\n", diff --git a/Python Fundamentals/CURL example.py b/Python Fundamentals/extras/CURL example.py similarity index 100% rename from Python Fundamentals/CURL example.py rename to Python Fundamentals/extras/CURL example.py diff --git a/Python Fundamentals/bad_curl.py b/Python Fundamentals/extras/bad_curl.py similarity index 100% rename from Python Fundamentals/bad_curl.py rename to Python Fundamentals/extras/bad_curl.py diff --git a/Python Fundamentals/extras/def calculate_tx(item,price,tax_rate):.py b/Python Fundamentals/extras/def calculate_tx(item,price,tax_rate):.py new file mode 100644 index 0000000..b279ebf --- /dev/null +++ b/Python Fundamentals/extras/def calculate_tx(item,price,tax_rate):.py @@ -0,0 +1,24 @@ + +def calculate_tx(item,price,tax_rate): + '''Function to calculate item tax. + price needs to be float + tax_rate needs to be float + returns the item capitalized and the final price''' + if item == "alcohol": + tax_rate += .25 + elif item == "cigarette": + tax_rate += .35 + + final_price = price + (price * tax_rate) + return item.capitalize(), final_price + + +purchase = "frog" +item, price = calculate_tx(purchase,3.99,.08) +print("Here is the result:",item, round(price,2)) +purchase = "alcohol" +item, price = calculate_tx(purchase,3.99,.08) +print("Here is the result:",item, round(price,2)) +purchase = "cigarette" +item, price = calculate_tx(purchase,3.99,.08) +print("Here is the result:",item, round(price,2)) \ No newline at end of file diff --git a/functions_play.py b/Python Fundamentals/extras/functions_play.py similarity index 100% rename from functions_play.py rename to Python Fundamentals/extras/functions_play.py diff --git a/Python Fundamentals/extras/green-play-button.svg b/Python Fundamentals/extras/green-play-button.svg new file mode 100644 index 0000000..36c8f5f --- /dev/null +++ b/Python Fundamentals/extras/green-play-button.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/Python Fundamentals/import poem.py b/Python Fundamentals/extras/import poem.py similarity index 100% rename from Python Fundamentals/import poem.py rename to Python Fundamentals/extras/import poem.py diff --git a/Python Fundamentals/extras/req_code_file_ex.py b/Python Fundamentals/extras/req_code_file_ex.py new file mode 100644 index 0000000..d36da08 --- /dev/null +++ b/Python Fundamentals/extras/req_code_file_ex.py @@ -0,0 +1,5 @@ +print("Hello World!") + +message="hello programmer!" + +print(message) \ No newline at end of file diff --git a/Python Fundamentals/images/green-play-button.svg b/Python Fundamentals/images/green-play-button.svg new file mode 100644 index 0000000..36c8f5f --- /dev/null +++ b/Python Fundamentals/images/green-play-button.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/Python Fundamentals/images/words_after_gG.png b/Python Fundamentals/images/words_after_gG.png new file mode 100644 index 0000000..c94fc98 Binary files /dev/null and b/Python Fundamentals/images/words_after_gG.png differ diff --git a/myinventory.db b/myinventory.db deleted file mode 100644 index e69de29..0000000