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
81f7eb6c
Kaydet (Commit)
81f7eb6c
authored
Agu 12, 2000
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix some markup errors that prevented formatting, and one that didn't.
üst
8a74e5fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
tut.tex
Doc/tut/tut.tex
+5
-4
No files found.
Doc/tut/tut.tex
Dosyayı görüntüle @
81f7eb6c
...
@@ -1755,9 +1755,10 @@ item, then to the result and the next item, and so on. For example,
...
@@ -1755,9 +1755,10 @@ item, then to the result and the next item, and so on. For example,
\subsection
{
List Comprehensions
}
\subsection
{
List Comprehensions
}
List comprehensions provide a concise way to create lists without resorting
List comprehensions provide a concise way to create lists without
to use of the
\func
{
map()
}
or
\func
{
filter()
}
functions. The resulting
resorting to use of the
\function
{
map()
}
or
\function
{
filter()
}
construct tends often to be clearer than use of those functions.
functions. The resulting construct tends often to be clearer than use
of those functions.
\begin{verbatim}
\begin{verbatim}
>>> spcs = [" Apple", " Banana ", "Coco nut "]
>>> spcs = [" Apple", " Banana ", "Coco nut "]
...
@@ -1777,7 +1778,7 @@ construct tends often to be clearer than use of those functions.
...
@@ -1777,7 +1778,7 @@ construct tends often to be clearer than use of those functions.
\section
{
The
\keyword
{
del
}
statement
\label
{
del
}}
\section
{
The
\keyword
{
del
}
statement
\label
{
del
}}
There is a way to remove an item from a list given its index instead
There is a way to remove an item from a list given its index instead
of its value: the
\
code
{
del
}
statement. This can also be used to
of its value: the
\
keyword
{
del
}
statement. This can also be used to
remove slices from a list (which we did earlier by assignment of an
remove slices from a list (which we did earlier by assignment of an
empty list to the slice). For example:
empty list to the slice). For example:
...
...
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