You Are Here:

Community: Developer Discussion Boards

#1 Old writing first Python program - 2007-11-26, 04:49

Join Date: Nov 2007
Posts: 1
lrp18th
Offline
Registered User
Alright, I'm completely knew to programming so here is my issue. I've downloaded MacPython 2.5.1 and am following the tutorial Byte of Python. There comes a section in the tutorial in regards to choosing an editor. I've got IDLE downloaded so I've got an editor. Got it, understand so far. Then this dude starts talking about opening the editor (which I've done), typing print 'Hello World' and saving it as helloworld.py. Did that, great. Now he says to open a shell and simply type python helloworld.py. Guess What? I get and invalid syntax error. Can anyone tell me why? Do I need to save this file someplace in particular in order for the interpreter to execute the program. Somehow, this genius in his attempt to write an "easy to follow tutorial" fails to go into any detail regarding this. Furthermore I guess he doesn't check his e-mail.

Can anyone help me out as to what I'm doing wrong?'

thanks
Reply With Quote

#2 Old Re: writing first Python program - 2007-11-26, 05:43

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Hello lrp18th and welcome to the forum

This forum is related to Python for S60 which is meant for mobile application development. Your question is related to core python and not python for S60.
However use this link to get along with your hello world
http://www.engin.umd.umich.edu/CIS/c...on/hworld.html
Also there are many tutorials on Python as well as Python for S60. If your are not satisfied with one then you can definitely use another one.Youy have many options.Just google a bit!

Hope that helps

Best Regards
croozeus
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
[announce] Mobile Python book soon in Sept 2007 ! cyke64 Python 11 2007-10-03 20:46
(Re)associating Python scripts with Python in messaging? RaimondasL Python 3 2007-03-13 07:50
I can't to Minimize program (Imprement by python) asimo_san Python 2 2007-02-16 18:35
'Program closed: python'. When does this show up? bercobeute Python 4 2006-01-02 22:12
MMS program for PocketPC and What Chipset ? SamBenn Multimodecards 1 2003-08-07 10:59

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia