Raymond Broomemondo.hashnode.dev·Feb 17, 2024Using a Pair/Tuple type in JavaAt times I find myself wanting to use a type such as tuple in Python (or Scala) or the std::pair from C++ to represent a listing of homogenous or heterogenous values e.g. coordinates (x,y), a value along with its frequency ('b',2) or some other type ...Discuss·37 readsJava
Osaf Ali Sayedosafalisayed.com·Feb 11, 2024Day 4 - Any Type and TuplesAny type in TypeScript allows a variable to have any datatype. We revert to JavaScript if you use any keyword. // A variable of type any can take any value let x: any; x = 10; x = false; x = "string"; // We can put all these values because any type a...Discuss·1 likeLearn with me TypeScript Crash Course Seriestuples
Shashank Shetshashankshet.hashnode.dev·Dec 13, 2023Mastering Tuples in Python: Unveiling the Power of ImmutabilityIn this advanced Python exploration, we turn our attention to a gem in the Python collection family: Tuples. As ordered and immutable collections, tuples play a unique role in the Pythonic orchestra. Join us as we unravel the intricacies of tuples an...DiscussPython 3
maham tariqmahamtariq58.hashnode.dev·Nov 24, 2023Tuples and SetsTuples Tuples are in-built data structures in Python that are similar to lists, except that tuples are immutable (i.e., contents cannot be changed). Creating a Tuple # empty tuple t = () # tuple with single item t = ('hello',) # Homogeneous tuple ...DiscussPython Essentialsset comprehension
Elucian MoiseforProgramming Languagessagecode.hashnode.dev·Oct 27, 2023Python TuplesHere is a summary of tuples in Python: Tuples are immutable ordered sequences of objects in Python. Once a tuple is created, you cannot change its elements. Syntax: A tuple is created by placing all the items (elements) inside parentheses ( ), separa...DiscussPython SyntaxPython
ESlavin1808eslavin.hashnode.dev·Sep 30, 20233.2 TuplesIn Python, a tuple is an ordered collection of elements, enclosed in parentheses and separated by commas. Tuples are similar to lists, but they are immutable, meaning that once a tuple is created, its elements cannot be modified. Tuples are commonly ...Discuss·30 readsUnlocking the Python Mysteriestuples
Richard Senyo Gadasusenyo197.hashnode.dev·Sep 11, 2023Mastering Python Sequences: Lists, Tuples, and More!Python, a versatile and powerful programming language, offers a rich set of data structures. Among them, lists, tuples, and sequences stand out as essential tools for every Python developer. In this article, we’ll embark on a journey to demystify the...Discuss·46 readspython beginner
Unnati Guptadevunnatig.hashnode.dev·Sep 1, 2023Python Data Types and Data Structures for DevOpsAlready discussed the data types in Python. Please go through this link: Python DataTypes Data Structures: Data Structures are a way of organizing data so that it can be accessed more efficiently depending on the situation. Data Structures are fundam...Discusspython data types
Bug And Fixbugandfix.com·Aug 31, 2023Tuples in C#Tuples in C# are lightweight data structures that allow you to group multiple related values into a single object. Unlike classes or structs, tuples don't require defining a specific type beforehand. Tuples are useful when you need to return multiple...Discuss·84 readsdotnet
Dom Jocubeitdjocubeit.hashnode.dev·Jul 3, 2023Replacing tuples with recordsWith the release of Dart 3.0 came a new feature -- records. You can learn about records in the Dart language documentation. For those unaware, to paraphrase: records are an anonymous, immutable, aggregate type. Records let you bundle multiple objects...Discuss·2 likes·110 readsDart 3.0