473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Explanation about for loop

can any one help me explaining for loop and its execution and its
syntax with a simple example.

Jan 12 '07 #1
3 1876
On 11 Jan 2007 20:48:19 -0800, raghu <vg********@gmail.comwrote:
can any one help me explaining for loop and its execution and its
syntax with a simple example.
Well Guido did that:
http://docs.python.org/tut/node6.htm...00000000000000
--
----
Amit Khemka -- onyomo.com
Home Page: www.cse.iitd.ernet.in/~csd00377
Endless the world's turn, endless the sun's Spinning, Endless the quest;
I turn again, back to my own beginning, And here, find rest.
Jan 12 '07 #2
"raghu" <vg********@gmail.comwrote in message
news:11********************@q2g2000cwa.googlegroup s.com...
can any one help me explaining for loop and its execution and its
syntax with a simple example.
Bookmark this page: http://docs.python.org/ref/ref.html
"for loop" reference page: http://docs.python.org/ref/for.html
Bookmark this page: http://docs.python.org/tut/tut.html
"for loop" explanation:
http://docs.python.org/tut/node6.htm...00000000000000

Please avail yourself of one of the many online or hardcopy Python tutorial
and reference resources. If you are asking about for loops, you have a lot
of basic ground to cover, more than is really suitable for newsgroup
traffic. Google for "python tutorial" should give you a good start.

-- Paul

Jan 12 '07 #3
At Friday 12/1/2007 01:48, raghu wrote:
>can any one help me explaining for loop and its execution and its
syntax with a simple example.
This section of Dive Into Python explain for loops:
http://diveintopython.org/file_handling/for_loops.html
(And you could read the whole book too)
--
Gabriel Genellina
Softlab SRL


__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas

Jan 12 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: velthuijsen | last post by:
I have a function that before I modified it took around 13.75 seconds to complete after the modification it took .325 seconds to complete. the function header: (Point **Input, size_t InputSize,...
1
by: Robert Stearns | last post by:
Running the following shell script (DB2 8.1.5, LINUX): db2 <<END connect to animals set schema is3 SET PATH = CURRENT PATH, IS3@ call make_angus_animals() commit quit END
23
by: dominant | last post by:
What this function does? void test_function(char *s, char *t) { while(*s++=*t++)
70
by: rahul8143 | last post by:
hello, 1) First how following program get executed i mean how output is printed and also why following program gives different output in Turbo C++ compiler and Visual c++ 6 compiler? void main()...
6
by: Mark Walsh | last post by:
The following is an explanation of a bug that exists in the VB.NET compiler. I've tried to report it to Microsoft, but they've made it so difficult I've given up: MSDN help states that variables...
7
by: s99999999s2003 | last post by:
hi my friend has written a loop like this cnt = 0 files = while cnt < len(files) : do_something(files) i told him using for fi in files: do_something(fi)
6
by: mantrid | last post by:
Hello Found this piece of code using preg_match to check file types during upload of files. $allowed_file_types = "(jpg|jpeg|gif|bmp|png)"; preg_match("/\." . $allowed_file_types . "$/i",...
12
by: garyusenet | last post by:
I have had no replies to my previous post so perhaps I didn't write it good enough. Please excuse new thread but i wanted to break from the last thread hopefully this thread will be better. ...
7
by: nahom | last post by:
Hi, can any one explain me what function of this for loop and the 'execute immediate command line' . C_ALTER_INDEXES is a cursor FOR L_ALTER_INDEXES IN C_ALTER_INDEXES LOOP ...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.