forked from golya/syllabus-2015-Nov
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of ssh://gexhub/greenfox-academy/syllabus-2015-nov
- Loading branch information
Showing
4 changed files
with
3,243 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
alma | ||
.DS_Store | ||
*.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Tuesday - Functions and data structures | ||
|
||
## Before lesson materials | ||
|
||
Mandatory: | ||
|
||
* [General introduction to functions][1] | ||
* [Introduction to Python built-in data structures][2] | ||
|
||
Optional: | ||
|
||
* [Hands-on Python Tutorial: Defining Functions of your Own][3] | ||
* [Codecademy course on Python functions][4] | ||
* [Codecademy course on Python lists and dictionaries][5] | ||
|
||
## Tasks | ||
|
||
### Functions | ||
|
||
* Function basics | ||
* Stateless functions | ||
* Side effects | ||
* Recursion | ||
* Exercises: | ||
Write a function for: | ||
1. "Say hi" in different languages, defaulting to English | ||
2. Calculate circumference of a circle | ||
3. Calculate the first n numbers in the Fibonacci sequence | ||
|
||
### Data structures | ||
|
||
* Discuss the importance of data structures | ||
* Implement our very own linked list (led by instructor) | ||
* Basics | ||
* Append | ||
* Insert | ||
* Remove | ||
* Go over the Python built-in basic data structures | ||
* List, stack, queue | ||
* Set | ||
* Dictionary | ||
* Daily project: fun with lottery numbers | ||
1. Print the five most frequent numbers and how many times they have occurred | ||
2. Gather all the individual numbers that were drawn | ||
|
||
If there is time left: | ||
|
||
* Graphs | ||
* Figure out how to build a binary tree | ||
|
||
[1]: http://www.cs.utah.edu/~germain/PPS/Topics/functions.html | ||
[2]: http://pymbook.readthedocs.org/en/latest/datastructure.html | ||
[3]: http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/functions.html | ||
[4]: https://www.codecademy.com/en/courses/python-beginner-c7VZg/0/1?curriculum_id=4f89dab3d788890003000096 | ||
[5]: https://www.codecademy.com/en/courses/python-beginner-en-pwmb1/0/1?curriculum_id=4f89dab3d788890003000096 |
Oops, something went wrong.