Algorithms For Dummies



Download 7,18 Mb.
Pdf ko'rish
bet182/651
Sana15.07.2021
Hajmi7,18 Mb.
#120357
1   ...   178   179   180   181   182   183   184   185   ...   651
Bog'liq
Algorithms

 

»

Tuples: A tuple is a collection that’s used to create complex, list-like sequences. 

An advantage of tuples is that you can nest the content of a tuple. This feature 

lets you create structures that can hold employee records or x-y coordinate  

pairs.


 

»

Dictionaries: As with the real dictionaries, you create key/value pairs when 

using the dictionary collection (think of a word and its associated definition). 




CHAPTER 4

  Introducing Python for Algorithm Programming 

     87


A dictionary provides incredibly fast search times and makes ordering data 

significantly easier.



 

»

Stacks: Most programming languages support stacks directly. However, 

Python doesn’t support the stack, although a workaround exists for that. 

A stack is a last in/first out (LIFO) sequence. Think of a pile of pancakes: You 

can add new pancakes to the top and also take them off the top. A stack is an 

important collection that you can simulate in Python by using a list.


Download 7,18 Mb.

Do'stlaringiz bilan baham:
1   ...   178   179   180   181   182   183   184   185   ...   651




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2025
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish