« Programmation Python/Ensembles » : différence entre les versions

Contenu supprimé Contenu ajouté
Aucun résumé des modifications
Ligne 242 :
</source>
 
==Exercises Exercices ==
#Create theCréer un set {'cat', 1, 2, 3}, call itappelé "s".
#Create theCréer un set {'c', 'a', 't', '1', '2', '3'}.
#Create theCréer un frozen set {'cat', 1, 2, 3}, call itappelé "fs".
#Create aCréer un set containing the frozenset fs, it should look likecontenant {frozenset({'cat', 2, 3, 1})}.
 
== Références ==
Ligne 253 :
* [https://docs.python.org/2/library/stdtypes.html#set-types-set-frozenset Python Library Reference on Set Types] -- python.org
* [https://www.python.org/dev/peps/pep-0218/ PEP 218 -- Adding a Built-In Set Object Type], python.org, a nice concise overview of the set type
 
{{à traduire}}