[Tutor] New to programming and python first minimilistic program (Bottles of beer), , please comment!

matthew andriani skellem2003 at hotmail.com
Wed Jun 17 22:46:00 CEST 2009


Hi Guys,

I wrote this program for some practice to get into python..I'm trying to find fun ways to learn the language so if anyone has a challenge on this basic level using loops that sounds exciting please let me know.. If you think this program can be improved please let me know too :)

b = "bottles of beer"
w = "on the wall"
a = 100
while a != 0:
    a = a-1
    print a,b,w,a,b,"if one of those bottles should happen to fall there'll be",a-1,b,w


Thanks for the feedback..

Cheers,
Skellem.



_________________________________________________________________
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.

http://www.microsoft.com/windows/windowslive/products/photos.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090617/47a29627/attachment.htm>


More information about the Tutor mailing list