Skip to content

Commit

Permalink
Merge pull request #41 from LDSSA/SLU04-data-structures
Browse files Browse the repository at this point in the history
Slu04 data structures
  • Loading branch information
anaritarc authored Apr 11, 2021
2 parents da8d026 + c730b1e commit 8efdf71
Show file tree
Hide file tree
Showing 12 changed files with 10,616 additions and 0 deletions.
3,018 changes: 3,018 additions & 0 deletions Week 02/SLU04 - Data Structures/Exercise notebook.ipynb

Large diffs are not rendered by default.

1,046 changes: 1,046 additions & 0 deletions Week 02/SLU04 - Data Structures/Extra notebook.ipynb

Large diffs are not rendered by default.

6,433 changes: 6,433 additions & 0 deletions Week 02/SLU04 - Data Structures/Learning notebook.ipynb

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions Week 02/SLU04 - Data Structures/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Small Learning Unit 04 - Data Structures

## What is in this SLU?

A Data Structure is a collection of data values that enables data organization, management, and storage. Different tasks and algorithms call for different data structures that could be more efficient for a specific application (e.g. faster access, easier manipulation).

This learning unit covers theory and practical exercises regarding four types of data structures in Python: tuples, lists, dictionaries and sets.

#### Main topics

- Tuple
- List
- Dictionary
- Set

## How to go through this SLU?

1. Follow the [Learning Unit Workflow](https://github.com/LDSSA/ds-prep-course-2021#2-learning-unit-workflow) to setup your environment.
2. Go through the Learning Notebook.
3. Do the Exercise notebook, and submit it, as usual.
4. [Optional] If you feel like learning a bit more, you can check the Extra Notebook.

## "I need help understanding something"

You can and should ask for help, be it about Learning Notebooks, Exercises, or anything else. Please checkout the [How to Ask for Help](https://github.com/LDSSA/ds-prep-course-2021#4-how-to-ask-for-help), and remember not to share code when asking for help about the exercises!

## Additional notes
Don't forget to install the requirements using the `requirements.txt` file for this SLU!
Binary file added Week 02/SLU04 - Data Structures/data/happy.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Week 02/SLU04 - Data Structures/data/monkey.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Week 02/SLU04 - Data Structures/data/pizza_2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Week 02/SLU04 - Data Structures/data/slicing.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
69 changes: 69 additions & 0 deletions Week 02/SLU04 - Data Structures/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
alembic==1.5.8
argon2-cffi==20.1.0
async-generator==1.10
attrs==20.3.0
backcall==0.2.0
bleach==3.3.0
certifi==2020.12.5
cffi==1.14.5
chardet==4.0.0
decorator==5.0.1
defusedxml==0.7.1
entrypoints==0.3
fuzzywuzzy==0.18.0
greenlet==1.0.0
idna==2.10
importlib-metadata==3.10.0
ipykernel==5.5.3
ipython==7.22.0
ipython-genutils==0.2.0
ipywidgets==7.6.3
jedi==0.18.0
Jinja2==2.11.3
jsonschema==3.2.0
jupyter==1.0.0
jupyter-client==6.1.12
jupyter-console==6.4.0
jupyter-core==4.7.1
jupyterlab-pygments==0.1.2
jupyterlab-widgets==1.0.0
Mako==1.1.4
MarkupSafe==1.1.1
mistune==0.8.4
nbclient==0.5.3
nbconvert==6.0.7
nbformat==5.1.3
nbgrader==0.6.1
nest-asyncio==1.5.1
notebook==6.3.0
packaging==20.9
pandocfilters==1.4.3
parso==0.8.2
pexpect==4.8.0
pickleshare==0.7.5
prometheus-client==0.9.0
prompt-toolkit==3.0.18
ptyprocess==0.7.0
pycparser==2.20
Pygments==2.8.1
pyparsing==2.4.7
pyrsistent==0.17.3
python-dateutil==2.8.1
python-editor==1.0.4
pyzmq==22.0.3
qtconsole==5.0.3
QtPy==1.9.0
requests==2.25.1
Send2Trash==1.5.0
six==1.15.0
SQLAlchemy==1.4.4
terminado==0.9.4
testpath==0.4.4
tornado==6.1
traitlets==5.0.5
typing-extensions==3.7.4.3
urllib3==1.26.4
wcwidth==0.2.5
webencodings==0.5.1
widgetsnbextension==3.5.1
zipp==3.4.1
22 changes: 22 additions & 0 deletions Week 02/SLU04 - Data Structures/submit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import requests
import json


def submit(slack_id: str, learning_unit: int) -> None:
'''
Submits the notebook to the grades-collector.
param slack_id like "UTS63FC02"
param learning_unit like 0
'''
data = {
"learning_unit": 0,
"slack_id": slack_id,
"grade": 0,
"metadata": {}
}
response = requests.put(
"https://sub-nb-grades-collector.herokuapp.com/submit",
data=json.dumps(data)
)
print('Success' if response.ok else 'Whoopsie Daisy')

0 comments on commit 8efdf71

Please sign in to comment.