Code references¶
Basics¶
- firstinput.py for reading user input
- Variable scope between global, local,...
- travis.py to play with lists, for in range() and conditions
- cinema.py to illustrate how to use for dictionary
- Play with data structures: lists, queues, matrix, sets, and more dictionaries, with how to navigate into those structures
- Reverse a word and add aye, use loops, break, in voyals...
- Object Oriented Python: classes and inheritance: using constructor (init()) and method with self argument.
- Modules, import, and packages. Do not forget to set PYTHONPATH to the root folder to access any new modules
Flask¶
- Flask web app hello world then REST API end point with Flask and staticApp.py
- Flask serving a simple angular App
- TDD with Flask app and docker from testdriven.io course
Algorithms¶
- Sorting arrays: Bubblesort, selection sort, insertion sort and quicksort.
- Binary Tree with InOrderTraversal, PreOrderTraversal, PostOrderTraversal.
- Binary search within a sorted array which is a divide and conquer algorithm.
- Depth First Search, graph, Breadth First Search DFS: explores the highest-depth nodes first before being forced to backtrack and expand shallower nodes. BFS: explores all of the neighbor nodes at the present depth prior to moving on to the nodes at the next depth level.
Graphics¶
- Use a simple graphics API to create a window, draw circle and move them.
- Plotting normal curve with matplotlib
Web scrawling¶
Use urllib and beautiful soup to remove html tags from a web page to get text to parse. See this note for guidances
- Use regular expression (re module) to extract number from a text read from a file.
Astronomy¶
See detailed note here and code is under astronomy
folder.
AWS¶
To get some sample code to use AWS SDK see this folder.
Unit testing¶
- unittest
- Pytest framework
- [moto for backend mockup]http://docs.getmoto.org/en/latest/index.html)