PAIREN (Programming Channel)
101 subscribers
324 photos
60 videos
31 files
267 links
SW4gVGhlIE5hbWUgT2YgR29k
به نام خدا

کانال برنامه نویسی پایرن برای تمام دوستداران برنامه نویسی. رونوشت(Copy) کاملاً آزاد است.

آدرس گیت‌هاب:
https://github.com/PAIREN1383

Owner: @V_d_P_h_K
Download Telegram
Python Collections (Arrays)
There are four collection data types in the Python programming language:
List is a collection which is ordered and changeable. Allows duplicate members.
Tuple is a collection which is ordered and unchangeable. Allows duplicate members.
Set is a collection which is unordered, unchangeable*, and unindexed. No duplicate members.
Dictionary is a collection which is ordered** and changeable. No duplicate members.
*Set items are unchangeable, but you can remove and/or add items whenever you like.
**As of Python version 3.7, dictionaries are ordered. In Python 3.6 and earlier, dictionaries are unordered.
When choosing a collection type, it is useful to understand the properties of that type. Choosing the right type for a particular data set could mean retention of meaning, and, it could mean an increase in efficiency or security.


منبع: w3schools.com


#پایتون
#python


@Pairen_Programmers