Anonymous

Workshops/Python for Beginners: Difference between revisions

From London Hackspace Wiki
m
Line 9: Line 9:


=Things you will Need=
=Things you will Need=
==Python3==


We'll be working in Python3, so to begin with, you'll need a copy of that. If you are using Windows, Linux or MacOSX you can get a copy from
We'll be working in Python3, so to begin with, you'll need a copy of that. If you are using Windows, Linux or MacOSX you can get a copy from
Line 25: Line 28:


   brew install python32  
   brew install python32  
==Some kind of Terminal thing==
If you are using Windows, get used to using the '''cmd''' program. You'll need it. Under MacOSX you have the '''terminal.app''' or you can use [http://www.iterm2.com/#/section/home iTerm2]. If you are using Linux, thats no bother, you'll have a terminal application no doubt.




==Setting up Your System==
==A good text editor==


Python comes with IDLE on some systems and thats alright but its largely a pain in the long run.


===Windows===
===Windows===


[http://notepad-plus-plus.org/ Notepad ++] is pretty much the best text editor on Windows
[http://notepad-plus-plus.org/ Notepad ++] is pretty much the best text editor on Windows. You can also use [http://www.sublimetext.com/2 sublime text 2]


===OSX===
===OSX===


Python comes installed as standard but there are a few versions. You'll need to use the '''python2.5''' command in your terminal and make sure you install pyglet for the 2.5 python install. You can grab the OSX DMG from [http://www.pyglet.org/download.html the Pyglet page] and install it. It should work straight out of the box.
[http://www.sublimetext.com/2 sublime text 2] is pretty good but also [http://www.barebones.com/products/textwrangler/ Text Wrangler]. Dont use the default TextEdit!!!


Under OSX, I find [http://www.barebones.com/products/textwrangler/ textwrangler] to be the best.
===Linux===


===Linux===
Vim. Not emacs :P
 
 
==Pyglet==
 
The library we are using is called Pyglet. Dont worry, I've included it in the lessons
 
==THE CODE==
 
So all the lessons can be downloaded from the github page here: [https://github.com/OniDaito/PythonCourse https://github.com/OniDaito/PythonCourse]


You can download the whole thing as a zip (which is a good thing to do I'd say, if you dont have git installed). All the source code we are playing with, the examples and such, can be downloaded from here. Please download it and see if you can follow it before you arrive.


==Resources for the Day==
==Resources for the Day==
240

edits