Re: Starting Out and Need Help with Basics.
On Sun, Jul 3, 2016 at 7:13 AM, CHM Lyricswrote: > I am in fifth year at secondary school (senior years in high school). We've > been doing basic programs in Python at school, but we're now on a 6 week > holiday (Summer Holidays). So I decided I would try and download Python and > learn a bit more while I'm not doing anything. I have now downloaded it, > however, I have immediately noticed something. > > For example, what I know is, is that if you were to type: > print "Welcome to Python!" > And nothing else, it would ask you to save the program, which I'd do, but > then it just says there's an invalid syntax. I've tried adding a colon after > 'print' and I've tried adding brackets around "Welcome to Python!". But > nothing is working, can someone give me a hand please. > Did you use the right brackets? It should look like this: print("Welcome to Python!") ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Starting Out and Need Help with Basics.
I am in fifth year at secondary school (senior years in high school). We've been doing basic programs in Python at school, but we're now on a 6 week holiday (Summer Holidays). So I decided I would try and download Python and learn a bit more while I'm not doing anything. I have now downloaded it, however, I have immediately noticed something. For example, what I know is, is that if you were to type: print "Welcome to Python!" And nothing else, it would ask you to save the program, which I'd do, but then it just says there's an invalid syntax. I've tried adding a colon after 'print' and I've tried adding brackets around "Welcome to Python!". But nothing is working, can someone give me a hand please. -- https://mail.python.org/mailman/listinfo/python-list
Re: Need Help Starting Out
jmDesktop a écrit : Hi, I would like to start using Python, but am unsure where to begin. I know how to look up a tutorial and learn the language, but not what all technologies to use. I saw references to plain Python, Django, and other things. I want to use it for web building with database access. What do I use for that? Does it matter what I use on the client side (mootools, or whatever)? Your best bets are probably Django, Pylons or web.py. But you should learn enough of the core language itself before jumping in web stuff IMHO. -- http://mail.python.org/mailman/listinfo/python-list
Re: Need Help Starting Out
Your best bets are probably Django, Pylons or web.py. But you should learn enough of the core language itself before jumping in web stuff IMHO. Yes, a good point. If you are looking for general info then then Dive Into Python (a link is on the Python website) is a good start for people who are familiar with other programming languages. Otherwise I also found Python in a Nutshell useful. rod -- http://mail.python.org/mailman/listinfo/python-list
Re: Need Help Starting Out
On Tue, Mar 18, 2008 at 11:10 AM, jmDesktop [EMAIL PROTECTED] wrote: Hi, I would like to start using Python, but am unsure where to begin. I know how to look up a tutorial and learn the language, but not what all technologies to use. I saw references to plain Python, Django, and other things. I want to use it for web building with database access. What do I use for that? Does it matter what I use on the client side (mootools, or whatever)? If you are going to be developing web applications, there are many excellent frameworks available, all of which provide database support. If you are looking to develop desktop applications, you should check out Dabo (http://dabodev.com). They integrate data access and GUI controls, making it simple to create database apps. They use wxPython for the UI layer, but hide all of its ugliness, allowing you to program to a clean, consistent API for your GUI. -- # p.d. -- http://mail.python.org/mailman/listinfo/python-list
Need Help Starting Out
Hi, I would like to start using Python, but am unsure where to begin. I know how to look up a tutorial and learn the language, but not what all technologies to use. I saw references to plain Python, Django, and other things. I want to use it for web building with database access. What do I use for that? Does it matter what I use on the client side (mootools, or whatever)? My rational for using Python is because I am hoping it will allow me to better understand other python programs in other areas, not just web. I have used other languages for web apps for several years. Truth is that I always wanted to learn Python and have heard it was a good thing to know. Thank you. -- http://mail.python.org/mailman/listinfo/python-list
Re: Need Help Starting Out
Hi, I would like to start using Python, but am unsure where to begin. I know how to look up a tutorial and learn the language, but not what all technologies to use. I saw references to plain Python, Django, and other things. Hi, For database stuff you can plug directly into either MySQL or SQLite. For MySQL you need to install a third party library which you can get from: http://sourceforge.net/projects/mysql-python I think SQLite support is now included in Python 2.5, all you need to do is type import sqlite3, and away it goes. You will of course need to install SQLite, just search for it online. I found SQlite more than sufficient for any single user non-web based apps. On the client side you can use these library and if you like build a free standing app to run everything. For GUI toolkits you can do worse than download and install wxPython, which again is free (www.wxpython.org). If you want to dabble in games programming there is also PyGame. If you want to build free standing applications you can use Py2Exe (Windows) and Py2App (Mac), just Google them and they will appear. You may at times find Python a little slow, and you can even get round that problem in Windows and Intel based Macs by using Psyco (again just Google). It can speed up your code by quite a large margin. Hope these help you get started... Rod -- http://mail.python.org/mailman/listinfo/python-list
Re: Need Help Starting Out
On Tue, 18 Mar 2008 09:27:46 -0700 (PDT) rodmc [EMAIL PROTECTED] wrote: Hi, I would like to start using Python, but am unsure where to begin. I know how to look up a tutorial and learn the language, but not what all technologies to use. I saw references to plain Python, Django, and other things. Hi, For database stuff you can plug directly into either MySQL or SQLite. Or PostgreSQL. For MySQL you need to install a third party library which you can get from: http://sourceforge.net/projects/mysql-python And there are many interfaces for PostgreSQL including PyGreSQL which I maintain at http://PyGreSQL.org/ Hope these help you get started... And don't forget the tutorial on the Python web site. -- D'Arcy J.M. Cain [EMAIL PROTECTED] | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http://mail.python.org/mailman/listinfo/python-list
Re: Need Help Starting Out
Pylons is a Ruby on Rails-like web framework that allows you build dynamic web applications with a database backend. Here is a link to the Pylons web site: http://pylonshq.com/ On Tue, Mar 18, 2008 at 11:10 AM, jmDesktop [EMAIL PROTECTED] wrote: Hi, I would like to start using Python, but am unsure where to begin. I know how to look up a tutorial and learn the language, but not what all technologies to use. I saw references to plain Python, Django, and other things. I want to use it for web building with database access. What do I use for that? Does it matter what I use on the client side (mootools, or whatever)? My rational for using Python is because I am hoping it will allow me to better understand other python programs in other areas, not just web. I have used other languages for web apps for several years. Truth is that I always wanted to learn Python and have heard it was a good thing to know. Thank you. -- http://mail.python.org/mailman/listinfo/python-list -- | _ | * | _ | | _ | _ | * | | * | * | * | -- http://mail.python.org/mailman/listinfo/python-list
Re: Need Help Starting Out
On Mar 18, 10:10 am, jmDesktop [EMAIL PROTECTED] wrote: Hi, I would like to start using Python, but am unsure where to begin. I know how to look up a tutorial and learn the language, but not what all technologies to use. I think you are getting ahead of yourself. Get the book Learning Python(3rd edition), which just came out, and start at the beginning. I think the proper order is to learn the basics first, then learn an application of the language that you are interested in, i.e. web programming. -- http://mail.python.org/mailman/listinfo/python-list
Re: Starting out.
[EMAIL PROTECTED] wrote: 8 Well, I'm on vacation this week, so 5 pm means nothing to me: teetertotter from the Consolidated Word List from puzzlers.org. Yes, it's also spelled with a hyphen or a space, but as long as this is a valid spelling, it counts. I would recommend NOT looking this up, just take my word for it. You may be offended at what you find. did not need to look it up - I know that teetertotter is a complicated word for see-saw. - Hendrik -- http://mail.python.org/mailman/listinfo/python-list
Re: Starting out.
Hendrik van Rooyen wrote: [EMAIL PROTECTED] wrote: 8 Well, I'm on vacation this week, so 5 pm means nothing to me: teetertotter from the Consolidated Word List from puzzlers.org. Yes, it's also spelled with a hyphen or a space, but as long as this is a valid spelling, it counts. I would recommend NOT looking this up, just take my word for it. You may be offended at what you find. did not need to look it up - I know that teetertotter is a complicated word for see-saw. Uh...that means something else (according to the Urban Dictionary). - Hendrik -- http://mail.python.org/mailman/listinfo/python-list
Re: Starting out.
[EMAIL PROTECTED] wrote: (according to the Urban Dictionary). talk about reliable sources... /F -- http://mail.python.org/mailman/listinfo/python-list
Re: Starting out.
Fredrik Lundh wrote: [EMAIL PROTECTED] wrote: (according to the Urban Dictionary). talk about reliable sources... Well, as far as doing the research to prove them wrong, I'll give it a miss. /F -- http://mail.python.org/mailman/listinfo/python-list
Re: Starting out.
Grant Edwards wrote: Perl has syntax? ROTFLMAO. In fact, that even motivated: Psychotically Engineered Random Language. -- Bill Pursell -- http://mail.python.org/mailman/listinfo/python-list
Re: Starting out.
Richard Jones wrote: Tim Chase wrote: typed with just the top-row of keys '^[qwertyuiop]*$' The longest being typewriter :) Maybe you should say amongst the longest pepperwort perpetuity perruquier pirouetter proprietor repertoire typewriter But even that would be wrong. rupturewort hey, look, it's Friday -- http://mail.python.org/mailman/listinfo/python-list
Re: Starting out.
Thanks Paddy. That post pretty much cleared up everything for me. On Oct 13, 12:46 am, Paddy [EMAIL PROTECTED] wrote: Ahmer wrote: Hi all! I am a 15 year old High School Sophomore. I would like to start programming in Python. In school, we are learning Java (5) and I like to use the Eclipse IDE, I also am learning PHP as well. What are some ways to get started (books, sites, etc.)? I am usually on linux, but I have a windows box and am planning on getting a mac.Pydev gives you a Python mode for Eclipse: http://pydev.sourceforge.net/ The Python tutorial is a good way to learn Python: http://docs.python.org/tut/ Some pointers on writing Python for Java programmers: http://www.ferg.org/projects/python_java_side-by-side.html I guess you are new to both Java and Python, but if you know Java and were starting Python, the following points out that certain idioms of Java do not translate well to Python: http://dirtsimple.org/2004/12/python-is-not-java.html And finally: Lets 'big-up' Python: http://www.paulgraham.com/pypar.html I hope you enjoy Python. All the best, Paddy. P.S. maybe your High school might be interested in teaching Python as a first language rather than Java? http://www.oreilly.com/pub/a/oreilly/frank/elkner_0300.html http://www.python.org/workshops/2000-01/proceedings/papers/elkner/pyY... -- http://mail.python.org/mailman/listinfo/python-list
Re: Starting out.
From what I can see Python and PHP have VERY simillar syntax (sorry if I offended anyone but I am a n00b.) On Oct 13, 12:54 am, [EMAIL PROTECTED] wrote: Ahmer wrote: Hi all! I am a 15 year old High School Sophomore. I would like to start programming in Python. In school, we are learning Java (5) and I like to use the Eclipse IDE, I also am learning PHP as well. What are some ways to get started (books, sites, etc.)? I am usually on linux, but I have a windows box and am planning on getting a mac.Generally good choices. I don't prefer PHP, however. For somebody who is learning programming, it encourages sloppy programming. I would suggest that you use PyDev (http://pydev.sourceforge.net/), a Python plugin for Eclipse, for Python programming. It is a helpful environment, especially for somebody already using Eclipse. For resources, I suggest you take a look athttp://wiki.python.org/moin/BeginnersGuide/NonProgrammerswhich is for non-programmers. If you feel like checking other resources, more are linked tohttp://wiki.python.org/moin/BeginnersGuide. Best luck, k -- http://mail.python.org/mailman/listinfo/python-list
Re: Starting out.
On Fri, 2006-10-13 at 07:26 -0700, Ahmer wrote: From what I can see Python and PHP have VERY simillar syntax (sorry if I offended anyone but I am a n00b.) Two things: 1) Don't toppost. Your response should go after or interspersed with your quote, not above it. 2) You may be thinking of Perl, which has a very similar syntax to PHP. In all the languages I've seen, Python is in a class of its own. -- Andrew Poelstra http://www.wpsoftware.net/projects/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Starting out.
On 2006-10-13, Andrew Poelstra [EMAIL PROTECTED] wrote: On Fri, 2006-10-13 at 07:26 -0700, Ahmer wrote: From what I can see Python and PHP have VERY simillar syntax (sorry if I offended anyone but I am a n00b.) 2) You may be thinking of Perl, which has a very similar syntax to PHP. Perl has syntax? In all the languages I've seen, Python is in a class of its own. -- Grant Edwards grante Yow! Hand me a pair of at leather pants and a CASIO visi.comkeyboard -- I'm living for today! -- http://mail.python.org/mailman/listinfo/python-list
Re: Starting out.
Maybe you should say amongst the longest pepperwort perpetuity perruquier pirouetter proprietor repertoire typewriter But even that would be wrong. rupturewort hey, look, it's Friday proprietory proterotype rupturewort according to my web2 list of words. Hey, look, it's Friday, after 5:00pm! :) -tkc -- http://mail.python.org/mailman/listinfo/python-list
Re: Starting out.
Tim Chase wrote: Maybe you should say amongst the longest pepperwort perpetuity perruquier pirouetter proprietor repertoire typewriter But even that would be wrong. rupturewort hey, look, it's Friday proprietory proterotype rupturewort according to my web2 list of words. Hey, look, it's Friday, after 5:00pm! :) Well, I'm on vacation this week, so 5 pm means nothing to me: teetertotter from the Consolidated Word List from puzzlers.org. Yes, it's also spelled with a hyphen or a space, but as long as this is a valid spelling, it counts. I would recommend NOT looking this up, just take my word for it. You may be offended at what you find. -tkc -- http://mail.python.org/mailman/listinfo/python-list
Starting out.
Hi all! I am a 15 year old High School Sophomore. I would like to start programming in Python. In school, we are learning Java (5) and I like to use the Eclipse IDE, I also am learning PHP as well. What are some ways to get started (books, sites, etc.)? I am usually on linux, but I have a windows box and am planning on getting a mac. -- http://mail.python.org/mailman/listinfo/python-list
Re: Starting out.
On Thu, 2006-10-12 at 16:37 -0700, Ahmer wrote: Hi all! I am a 15 year old High School Sophomore. I would like to start programming in Python. In school, we are learning Java (5) and I like to use the Eclipse IDE, I also am learning PHP as well. What are some ways to get started (books, sites, etc.)? I am usually on linux, but I have a windows box and am planning on getting a mac. Start by learning two hours' worth of Java. Then you can blow off the rest of the course, if your school's anything like mine. I learned Python from A Byte of Python. It was okay, although not very refined last I checked. From there you just need to work on some random projects, and you'll become more proficient. (OT: Try to type 'proficient' with one hand on a US keyboard. :-)) -- Andrew Poelstra http://www.wpsoftware.net/projects/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Starting out.
Andrew Poelstra wrote: (OT: Try to type 'proficient' with one hand on a US keyboard. :-)) On the Internet, nobody wants to know when you're typing one-handed. Richard -- http://mail.python.org/mailman/listinfo/python-list
Re: Starting out.
Ahmer wrote: Hi all! I am a 15 year old High School Sophomore. I would like to start programming in Python. In school, we are learning Java (5) and I like to use the Eclipse IDE, I also am learning PHP as well. What are some ways to get started (books, sites, etc.)? I am usually on linux, but I have a windows box and am planning on getting a mac. Eclipse does take time to get used to ... not sure you want to put this between you and your learning Python ... you might want to assess a two step process. This is a very good introduction to python (http://www.diveintopython.org/) ... and then there are a billion of good books. hg -- http://mail.python.org/mailman/listinfo/python-list
Re: Starting out.
(OT: Try to type 'proficient' with one hand on a US keyboard. :-)) A number of nice words like that: authenticity proficiency entitlement enchantment protozoans proficient antisocial tutorials tormentor shanghais shamrocks rhapsodic protozoan pantheism handiwork flamencos fishbowls firmament endowment dyspeptic dyspepsia downturns downright divisible disorient dismantle dirigible cockfight authentic Try it yourself: import re r = re.compile('^[yuiophjklnm]?([asdfgqwertzxcvb][yuiophjklnm])*[asdfgqwertzxcvb]?$') for line in file('/usr/share/dict/words'): ... line = line.strip() ... if r.match(line): print line ... which finds words that (on a QWERTY keyboard) are touch-typed with alternating left/right hands. In a fit of late-night boredom, I played with regexps that will find words of the following classes of words (on a QWERTY keyboard): typed with just the left-hand '^[qwertasdfgzxcvb]*$' typed with just the right-hand '^[yuiophjklnm]*$' typed with just the top-row of keys '^[qwertyuiop]*$' typed with just the home-row of keys '^[asdfghjkl]*$' typed with just the home-row keys '^[asdfjkl]*$' Beware...they're fun :) -tkc -- http://mail.python.org/mailman/listinfo/python-list
Re: Starting out.
Tim Chase wrote: typed with just the top-row of keys '^[qwertyuiop]*$' The longest being typewriter :) hey, look, it's Friday -- http://mail.python.org/mailman/listinfo/python-list
Re: Starting out.
Ahmer wrote: Hi all! I am a 15 year old High School Sophomore. I would like to start programming in Python. In school, we are learning Java (5) and I like to use the Eclipse IDE, I also am learning PHP as well. What are some ways to get started (books, sites, etc.)? I am usually on linux, but I have a windows box and am planning on getting a mac. Pydev gives you a Python mode for Eclipse: http://pydev.sourceforge.net/ The Python tutorial is a good way to learn Python: http://docs.python.org/tut/ Some pointers on writing Python for Java programmers: http://www.ferg.org/projects/python_java_side-by-side.html I guess you are new to both Java and Python, but if you know Java and were starting Python, the following points out that certain idioms of Java do not translate well to Python: http://dirtsimple.org/2004/12/python-is-not-java.html And finally: Lets 'big-up' Python: http://www.paulgraham.com/pypar.html I hope you enjoy Python. All the best, Paddy. P.S. maybe your High school might be interested in teaching Python as a first language rather than Java? http://www.oreilly.com/pub/a/oreilly/frank/elkner_0300.html http://www.python.org/workshops/2000-01/proceedings/papers/elkner/pyYHS.html -- http://mail.python.org/mailman/listinfo/python-list
Re: Starting out.
Ahmer wrote: Hi all! I am a 15 year old High School Sophomore. I would like to start programming in Python. In school, we are learning Java (5) and I like to use the Eclipse IDE, I also am learning PHP as well. What are some ways to get started (books, sites, etc.)? I am usually on linux, but I have a windows box and am planning on getting a mac. Generally good choices. I don't prefer PHP, however. For somebody who is learning programming, it encourages sloppy programming. I would suggest that you use PyDev (http://pydev.sourceforge.net/), a Python plugin for Eclipse, for Python programming. It is a helpful environment, especially for somebody already using Eclipse. For resources, I suggest you take a look at http://wiki.python.org/moin/BeginnersGuide/NonProgrammers which is for non-programmers. If you feel like checking other resources, more are linked to http://wiki.python.org/moin/BeginnersGuide . Best luck, k -- http://mail.python.org/mailman/listinfo/python-list