Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

tuples

How to create a list with different type of data using vb.net?

September 4, 2022 by Magenaut

I need to create a list with different datatypes element, for example:

Categories ASP.NET, Q&A Tags arraylist, asp.net, list, tuples, vb.net Leave a comment

What is the Triplet class used for? Is it related to Tuples?

August 24, 2022 by Magenaut

So I just learnt about the Triplet class. I have no experience with ASP.NET, only the core .NET Framework.

Categories ASP.NET, Q&A Tags asp.net, c#, tuples Leave a comment

What’s the difference between lists and tuples?

August 22, 2022 by Magenaut

What’s the difference between tuples/lists and what are their advantages/disadvantages?

Categories Python, Q&A Tags list, python, tuples Leave a comment

How to sort a list/tuple of lists/tuples by the element at a given index?

August 22, 2022 by Magenaut

I have some data either in a list of lists or a list of tuples, like this:

Categories Python, Q&A Tags list, python, sorting, tuples Leave a comment

How to merge lists into a list of tuples?

August 22, 2022 by Magenaut

What is the Pythonic approach to achieve the following?

Categories Python, Q&A Tags list, merge, python, tuples Leave a comment

How does tuple comparison work in Python?

August 22, 2022 by Magenaut

I have been reading the Core Python programming book, and the author shows an example like:

Categories Python, Q&A Tags comparison, python, tuples Leave a comment

What is the syntax rule for having trailing commas in tuple definitions?

August 21, 2022 by Magenaut

In the case of a single element tuple, the trailing comma is required.

Categories Python, Q&A Tags python, syntax, tuples Leave a comment

Sort a list of tuples by 2nd item (integer value)

August 21, 2022 by Magenaut

I have a list of tuples that looks something like this: [('abc', 121),('abc', 231),('abc', 148), ('abc',221)] I want to sort this list in ascending order by the integer value inside the tuples. Is it possible? Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you … Read more

Categories Python, Q&A Tags list, python, tuples Leave a comment

Why does adding a trailing comma after a variable name make it a tuple?

August 21, 2022 by Magenaut

I want to know that why adding a trailing comma after a variable name (in this case a string) makes it a tuple. i.e.

Categories Python, Q&A Tags python, syntax, tuples Leave a comment

How does swapping of members in tuples (a,b)=(b,a) work internally?

August 21, 2022 by Magenaut

In [55]: a = 5 In [56]: b = 6 In [57]: (a, b) = (b, a) In [58]: a Out[58]: 6 In [59]: b Out[59]: 5 How does this swapping of values of a and b work internally? Its definitely not using a temp variable. Answers: Thank you for visiting the Q&A section on … Read more

Categories Python, Q&A Tags iterable-unpacking, python, python-internals, tuples Leave a comment
Older posts
Page1 Page2 … Page6 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress