सभी किताबें

पेशेवर

1 Markets I: The Ecosystem and Exchange-Traded Marketsबाज़ार ऑनलाइन 2 Markets II: Rates, FX and Creditबाज़ार ऑनलाइन 3 Markets III: Commodities, Energy and Cryptoबाज़ार ऑनलाइन 4 Quantitative Methodsविधियाँ ऑनलाइन 5 Derivatives and Volatilityडेरिवेटिव्स ऑनलाइन 6 Rates, Credit, XVA and Riskब्याज दरें, क्रेडिट और जोखिम ऑनलाइन 7 Research Craft: Predictors, Backtests, Measurement, Portfoliosअनुसंधान ऑनलाइन 8 Strategies I: Equities and Futuresरणनीतियाँ ऑनलाइन 9 Strategies II: Volatility, Relative Value, Macro and the Bank Desksरणनीतियाँ ऑनलाइन 10 Microstructure and Executionनिष्पादन ऑनलाइन 11 Market Making and High-Frequency Tradingमार्केट मेकिंग ऑनलाइन 12 Machine Learning for Marketsमशीन लर्निंग ऑनलाइन 13 Low-Latency Softwareतकनीक ऑनलाइन 14 Networks, Hardware and Trading Infrastructureतकनीक ऑनलाइन 15 Research, Data and Risk Platformsतकनीक ऑनलाइन 16 The Desk and the Firmफ़र्म ऑनलाइन 17 The Industry: Firms, Roles and Careersकरियर ऑनलाइन 18 Interviews I: Maths, Probability and Speedकरियर ऑनलाइन 19 Interviews II: Markets, Trading Games and the Final Roundकरियर ऑनलाइन 20 Interviews III: Codeकरियर ऑनलाइन
ऐप्स परिचय Coach लॉग इन पढ़ना शुरू करें

Computer Science · शब्दावली

Set (Python type) क्या है?

अन्य नाम: set (type)

Definition 2.6 High School Computer Science · अध्याय 2 — Tuples, Sets and Comprehensions

A set is a collection of values without order and without repeats. It is written between braces, {1, 2, 3}, or built from any sequence with set(t); the empty set is set(), since {} is an empty dictionary. The test x in s says whether x belongs to s, s.add(x) adds an element, and the operators &, | and - give the intersection, the union and the difference of two sets.

The two members’ sets of books, with the counts printed by the run (the five shared books are 16, 57, 62, 71 and 75). The union holds 6 + 11 - 5 = 12 books: the shared ones would otherwise be counted twice.
The two members’ sets of books, with the counts printed by the run (the five shared books are 16, 57, 62, 71 and 75). The union holds 6+11−5=126 + 11 - 5 = 12 books: the shared ones would otherwise be counted twice.

उदाहरण

Example 2.8 (The books of a member, in one line)

The function books_of of the town listing is the set comprehension {loan["book_id"] for loan in loans if loan["member_id"] == member}: for each loan, if it is the member’s, put its book in the set.

अध्याय में पढ़ें →