“Różnica między setem a krotką w Pythonie” Kod odpowiedzi

Różnica między setem a krotką w Pythonie

Lists and tuples are standard Python data types that store values in a sequence. Sets are another standard Python data type that also store values. The major difference is that sets, unlike lists or tuples, cannot have multiple occurrences of the same element and store unordered values.
Aditya Coding

Tuple vs Set Python

tuple = (1,2,3,4,5,6,7,8,9, 1,2,3) # output: (1,2,3,4,5,6,7,8,9, 1,2,3) will be same
set = (1,2,3,4,5,6,7,8,9, 1,2,3) # output: (1,2,3,4,5,6,7,8,9) // removes the duplicate values
ZNAS

Odpowiedzi podobne do “Różnica między setem a krotką w Pythonie”

Pytania podobne do “Różnica między setem a krotką w Pythonie”

Więcej pokrewnych odpowiedzi na “Różnica między setem a krotką w Pythonie” w Python

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu