Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
f790b16d
Kaydet (Commit)
f790b16d
authored
Kas 30, 1998
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Change "for" explanation slightly based on comment passed along by
Blake Winton <BlakeW@pcdocs.com>.
üst
ca6d6355
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
tut.tex
Doc/tut/tut.tex
+10
-7
No files found.
Doc/tut/tut.tex
Dosyayı görüntüle @
f790b16d
...
@@ -878,13 +878,16 @@ if', and is useful to avoid excessive indentation. An
...
@@ -878,13 +878,16 @@ if', and is useful to avoid excessive indentation. An
\section
{
\keyword
{
for
}
Statements
\label
{
for
}}
\section
{
\keyword
{
for
}
Statements
\label
{
for
}}
The
\keyword
{
for
}
statement in Python differs a bit from what you may be
The
\keyword
{
for
}
\stindex
{
for
}
statement in Python differs a bit from
used to in
\C
{}
or Pascal. Rather than always iterating over an
what you may be used to in
\C
{}
or Pascal. Rather than always
arithmetic progression of numbers (like in Pascal), or leaving the user
iterating over an arithmetic progression of numbers (like in Pascal),
completely free in the iteration test and step (as
\C
{}
), Python's
or giving the user the ability to define both the iteration step and
\keyword
{
for
}
statement iterates over the items of any sequence (e.g., a
halting condition (as
\C
{}
), Python's
\keyword
{
for
}
\stindex
{
for
}
list or a string), in the order that they appear in the sequence. For
statement iterates over the items of any sequence (e.g., a list or a
example (no pun intended):
string), in the order that they appear in the sequence. For example
(no pun intended):
% One suggestion was to give a real C example here, but that may only
% serve to confuse non-C programmers.
\begin{verbatim}
\begin{verbatim}
>>> # Measure some strings:
>>> # Measure some strings:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment