Like in any language there any number for ways, heres another<br><br>b = "bottles of beer"<br>w = "on the wall"<br>bottles = range(1, 101)<br>bottles.reverse()<br>for bottle in bottles:<br> print " %s %s %s if one of those bottles should happen to fall there'll be %s %s %s" % (bottle, b,w, bottle-1, b,w)<br>
<br>Vince<br><br><div class="gmail_quote">2009/6/17 matthew andriani <span dir="ltr"><<a href="mailto:skellem2003@hotmail.com">skellem2003@hotmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
Hi Guys,<br><br>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 :)<br>
<br>b = "bottles of beer"<br>w = "on the wall"<br>a = 100<br>while a != 0:<br> a = a-1<br> print a,b,w,a,b,"if one of those bottles should happen to fall there'll be",a-1,b,w<br><br>
<br>Thanks for the feedback..<br><br>Cheers,<br>Skellem.<br><br><br><br><hr>What can you do with the new Windows Live? <a href="http://www.microsoft.com/windows/windowslive/default.aspx" target="_blank">Find out</a></div>
<br>_______________________________________________<br>
Tutor maillist - <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
<br></blockquote></div><br>