[Tutor] Programs for Newbies?

Patty patty at cruzio.com
Sat Nov 6 17:54:32 CET 2010


For my first program, I liked creating a number game, simple and where the 
user made a choice.  That was good for learning how to interact with the 
user.  The raw_input() function.

Patty

----- Original Message ----- 
From: "Steven D'Aprano" <steve at pearwood.info>
To: <tutor at python.org>
Sent: Friday, November 05, 2010 10:55 PM
Subject: Re: [Tutor] Programs for Newbies?


> Danyelle Davis wrote:
>> Hi all,
>>
>> Any suggestions for a newbie to program while learning python?  I am new 
>> to
>> programming and python.
>
>
> Here's a few suggestions:
>
>
> Write a program that asks the user to enter a word, then counts how many 
> vowels and consonants are in the word.
>
> Write a program that asks the user for a list of numbers, separated by 
> spaces or commas, and then calculated the average.
>
> A program that prints the time.
>
> A program that prints how many days to go until their next birthday.
>
> A program that counts how many palindrome numbers there are between two 
> other numbers. (A palindrome number is one like 12321, or 473374.)
>
> A program that sings (well, prints) the "There were ten in the bed" song. 
> If you don't know it, it is a children's song. You start off by holding up 
> ten fingers, or you can use actual children. You don't have to start with 
> ten. Then you sing:
>
> There were ten in the bed, and the little one said,
> Roll over! Roll over!
> And they all rolled over and ONE FELL OUT!
> There were nine in the bed, and the little one said,
> Roll over! Roll over!
> And they all rolled over and ONE FELL OUT!
> There were eight in the bed, and the little one said,
> ...
>
> Well you get the idea. Eventually you've left with only the little one 
> left, and the song ends:
>
> There was one in a bed, and the little one said
> Good night!
>
>
>
>
> -- 
> Steven
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
> 



More information about the Tutor mailing list