Hi everyone! I'm the author of code.mu :)
I'd love to chat with my non-Russian audience. I'm looking for your feedback on the site and the translation quality. Let's chat:)
39 of 151 menu

The frozenset function

The function frozenset transforms a set into immutable. In the function parameter we specify the set that we need to make immutable.

Syntax

frozenset(set)

Example

Let's make our set immutable:

st = {'a', 'b', 'c'} res = frozenset(st) print(res)

Result of code execution:

frozenset({'a', 'b', 'c'})

See also

  • method add,
    which adds elements to a set
  • method remove,
    which removes elements from a set
  • function len,
    which returns the length of the set
English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline