A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-July/102004.html below:

[Python-Dev] A suggestion

[Python-Dev] A suggestion [Python-Dev] A suggestionBrandon Hayden comcombrandon2 at yahoo.com
Sat Jul 17 04:38:40 CEST 2010
In the Python language, or any other language for that matter, I have  never 
understood why they don't have a loop function. Here's what I  mean, every time 
someone wants something to repeat itself, they have to  write a while loop like 
this:

x = 0
while x < 10:
    function()
    x = x + 1

When, instead of writing all of that, you could do something similar to  this:

function().10

Where you can just type in the number 10 right next to it. It makes no  since.


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20100716/c735621f/attachment-0001.html>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4