sandiegopython / intro-to-python Goto Github PK
View Code? Open in Web Editor NEWIntroduction to Python (2014)
License: Creative Commons Attribution 4.0 International
Introduction to Python (2014)
License: Creative Commons Attribution 4.0 International
All,
Thank you!
We're at the homestretch, and things look in great shape for tomorrow. ๐ฐ
As an aid to keeping things focused today, I strongly recommend that the workshop content be frozen as of 4 am Friday morning.
Today is a day for janitorial tasks and keeping zen.
To simplify, keep communication focused, and hopefully avoid any git snafus with IPython notebook, these sub-teams are responsible for merging PRs in the following parts:
[ ] Part 0: @alaindomissy, @macro1, @jkrooskos
[ ] Part 1: @treyhunner, @riseriyo, @willingc
[ ] Part 2: @pydanny, @treyhunner, @willingc
[ ] Part 3: @audreyr, @pydanny, @willingc
[ ] Part 4: @treyhunner, @alaindomissy, @jkrooskos
[ ] Part 5: @audreyr, @pydanny, @willingc
Rock on,
Carol
Add under the sponsors list:
"Special thanks to the sponsors of this free workshop:"
part2 : tungsten (I think) is much more desirable then tungston for a wedding ring
I read Some Suggestions for Teaching Python and one of the suggestions regarded teaching the distinction between the return
statement and the print
function. I think we should make this clear if possible.
After the exercises for dictionaries, let's mention that typing out the sets section is optional and we suggest that students sit back and relax because. Sets are great to know about, but you can always look up how they work when you need them.
If there are issues in the future with launching ipython notebook when using Anaconda on a Mac and you receive a value error for utf-8, the solution is documented here by Aaron Meuer of Continuum:
http://conda.pydata.org/docs/troubleshooting.html#issue-valueerror-unknown-locale-utf-8-on-mac-os-x
simplify windows install instructions
guide user to general download page and big yellow button for py3.4.1
appropriate version for user's windows version will get downloaded
part1 is showing py2.7 code:
3 / 2 returns 1
3.0 / 2 returns 1.5
different results for integers and floats
this is no longer the case with python3
that was how the notion of type was introduced last time we ran that workshop : int versus float and the type() function
we need to update that part and possibly change the flow to introduce the notion of type in a differnet manner
Just opening an issue to note that there's still a TODO in part 3:
Raise your hand if you felt like this exercise was repetitive...TODO
By the way, the new explanations and examples in part 3 are great! I found them very entertaining. ๐
Audrey will have a slide presentation on the 20 cool things that Python can do.
Suggestion: Remove this section, "Why Python is so Great" from Part 1
I've got this 100% covered. Please give me room to finish :)
Definition of list comprehension. A bit confusing with statement, "inside-out for loop".
Suggestion: Explain term differently or add more to what you are defining it is as an 'inside-out for loop".
Change "Let's revisit a problem we've already solved:"
to "Let's revisit a problem we've already solved during Danny's lecture:"
Currently we show 5 examples of division in part 1. We did this originally to show the difference between integer/float division. In Python 3 all division results in a float, so I think we can reduce the number of examples.
Currently we have:
4 / 2
1 / 2
3 / 2
15 / 2
1.0 / 2
Maybe we should change this to just a couple. I propose:
4 / 2
3 / 2
This is a reminder (mainly for me) to check where would be a good spot to add a link to the official Python Tutorial https://docs.python.org/3.4/tutorial/index.html
I did a quick search of the repo and didn't see it included. Seems reasonable to include.
@treyhunner I merged your changes. I noticed one technical issue when running under 3.4.1.
This line below only outputs the words to stdout and does not place word into translated words dictionary:
translated_words = [print(words[spanish_word]) for spanish_word in sentence_words]
When I executed next line:
translated_words
the dictionary contains 6 elements with the value 'None'
Removing print correctly creates translated_words.
Do we need to do the Welcome, The Game Plan, and Python Setup in Part 1? In the Google docs outline for the day: these sections seem to be covered under:
9:30 - Welcome/Intros
and then in Part 0 - the environment setup which is from 9:00am - 9:30am.
Suggestion: Remove The Welcome, The Game Plan, and Python Setup from Part 1.
Just a heads up that I'm adding a big section to "Instructions For Students" in the README with the agenda, links to slides, etc.
The purpose is so they can follow along locally with our slides/notes in case they fall behind.
If anyone would be willing to fix my revert mess, I would be most appreciative.
I would like to roll back to this commit 3ef06df
Thanks
@treyhunner, @macro1 ???
There's a great simple sets example in part 2 and I have sets in part 4 also.
I the example in part 2 better than the one in part 4. For how infrequently I use sets, mine is a little too in-depth I think (we go over intersection and such).
I think I should remove sets from part 4. I could replace the example with tuples or just leave it out and we could give more time for exercises.
What does everyone else think?
Concerning the squared_numbers example:
Ok, I'm assuming that you are going to go over how the list comprehension is written out differently from a for-loop, correct? e.g., what part of the for-loop is where in the list comprehension, etc.
Not an issue but an idea may be:
We are going to mention different resources available for learners beyond this workshop
(at end of part 5?)
Would this one be nice to have as a resource: ?
http://pythontutor.com/ "LEARN programming by visualizing code execution"
Possibly public domain or other Creative Commons license. Actually, when I use Creative Commons licensed materials, I enjoy the attribution part because it encourages friendly sharing and crediting between projects, and also it makes it easy to track down original sources.
For example, I attributed our Part 0 section here to DjangoGirls Tutorial: Python Installation, who attributed it in turn to Geek Girls Carrots. It's really cool to trace back and discover that our setup instructions were originally written in Polish for women programmers in Warsaw! Attribution history can be fun to read.
We should add Mac install instructions.
I realized this evening that multiple Python versions installed on Windows coexist nicely as documented here: https://docs.python.org/3/using/windows.html
For this workshop, using 3.4 installed through the official installation package is done by using py -3
instead of python.exe
.
I know for Ubuntu, python
usually indicates 2.7 usage while python3
is linked to the latest version of 3.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.