Beginners Guide to ...
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

[Closed] Beginners Guide to Python...

11 Posts
8 Users
0 Reactions
80 Views
Posts: 0
Free Member
Topic starter
 

Having been inspired yesterday I've just started having a play with python. Been following this tutorial as he's started from the beginning so easy for people like me to follow.

http://www.dickBaldwin.com/

However I've hit a wall as I don't know how to create a path file for it. I'm using Mac OS X. Feeling a bit like I'm in over my head but I really want to get to grips with it.

So any help / tips / advice here will be greatly appreciated!


 
Posted : 07/04/2011 6:47 pm
Posts: 0
Free Member
 

Start with the dead parrot


 
Posted : 07/04/2011 6:58 pm
Posts: 0
Free Member
 


 
Posted : 07/04/2011 6:58 pm
Posts: 33325
Full Member
 

“it's f*****g snuffed it!”


 
Posted : 07/04/2011 7:01 pm
Posts: 0
Free Member
 

Trouble downt mill,
four yorkshiremen...
ministry of sllly walks.


 
Posted : 07/04/2011 7:08 pm
Posts: 0
Free Member
Topic starter
 

Should have seen that one coming!


 
Posted : 07/04/2011 7:10 pm
Posts: 0
Free Member
 


 
Posted : 07/04/2011 7:10 pm
Posts: 349
Free Member
 

Yay, Python!

[url= http://docs.python.org/tutorial/ ]http://docs.python.org/tutorial/[/url]

Another tutorial you might want to look at. What do you mean a path file? Do you mean adding Python to your system path so that you can call python from the command line?

Have you done any coding before?


 
Posted : 07/04/2011 7:12 pm
Posts: 0
Free Member
Topic starter
 

Cheers chvck, that looks like a helpful tutorial.

I'm under the impression that to start using scripts I have to set a path for it?

And no, no coding experience whatsoever!


 
Posted : 07/04/2011 7:15 pm
Posts: 9
Free Member
 


 
Posted : 07/04/2011 7:23 pm
Posts: 349
Free Member
 

I'm not an osx user but i use Ubuntu so it's not that far away.

[url= http://stackoverflow.com/questions/3387695/add-to-python-path-mac-os-x ]http://stackoverflow.com/questions/3387695/add-to-python-path-mac-os-x[/url]

Might help you, it may not. One of the most important things (at least to me) is the editor that you use to write code. Having syntax highlighting and auto-complete on keywords is quite nice. It's worth having a play with a few to see what you like. I use Komodo Edit 6

[url= http://www.activestate.com/komodo-edit ]http://www.activestate.com/komodo-edit[/url]

It may also be worth having a look at a few generic programming guides and that sort of thing. When you've got to grips with it all I can send/link you some of my code to have a play with if you like.


 
Posted : 07/04/2011 7:26 pm
Posts: 0
Free Member
 

Python comes pre-installed on OSX. Snow Leopard ships with 2.6 specifically. You don't need to mess with your path to run a script, just do "python <your script.py>" in Terminal.app and you're away.

To add to chvck's bit about editors, give [url= http://macromates.com/ ]Textmate[/url] a go. It's very popular on OSX and pretty cheap to buy if you like it.


 
Posted : 07/04/2011 7:40 pm

6 DAYS LEFT
We are currently at 95% of our target!