Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion ten small Python programs
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
John K Masters  
View profile  
 More options May 27 2007, 5:15 am
Newsgroups: comp.lang.python
From: John K Masters <johnmast...@oxtedonline.net>
Date: Sat, 26 May 2007 20:15:16 +0100
Local: Sun, May 27 2007 5:15 am
Subject: Re: ten small Python programs
On 11:43 Sat 26 May     , Steve Howell wrote:

> I've always thought that the best way to introduce new
> programmers to Python is to show them small code
> examples.  

> When you go to the tutorial, though, you have to wade
> through quite a bit of English before seeing any
> Python examples.

> Below is my attempt at generating ten fairly simple,
> representative Python programs that expose new users
> to most basic concepts, as well as the overall syntax.

> It was an interesting exercise.  I constrained myself
> to ten lines or less, and it was pretty easy to
> incorporate loops, conditionals, print, open(), lists,
> tuples, dictionaries, and imported modules.  

> It was harder to show classes, and my ShoppingCart
> class is nothing more than an encapsulation of a list,
> which has dubious value (although it's the start of
> something more useful).

> Anyway, here goes:

Many thanks for that. This is exactly what is missing in most introductory
books. Simple, relevant and concise examples.

Regards, John
--
War is God's way of teaching Americans geography
Ambrose Bierce (1842 - 1914)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google