create a tuple from pairsWhat is the equivalent of the C++ Pair<L,R> in Java?How can I safely create a nested directory?What's the difference between lists and tuples?What are “named tuples” in Python?Is Using .NET 4.0 Tuples in my C# Code a Poor Design Decision?How to sort (list/tuple) of lists/tuples by the element at a given index?Convert list to tuple in PythonChoose two tuples from a list and calculate every possible pair in Python

Can a fight scene, component-wise, be too complex and complicated?

ICO or PNG Format?

What happens if I delete an icloud backup?

Who are these characters/superheroes in the posters from Chris's room in Family Guy?

A simple stop watch which I want to extend

constant evaluation when using differential equations.

n-types of the theory of natural numbers?

What are the conventions for transcribing Semitic languages into Greek?

Is this curved text blend possible in Illustrator?

Is there a standardised way to check fake news?

CTCI Chapter 1 : Palindrome Permutation

Continuous vertical line using booktabs in tabularx table?

How is this kind of structure made?

Different inverter (logic gate) symbols

Is Texas Instrument wrong with their pin number on TO-92 package?

Tikzpicture - finish drawing a curved line for a cake slice

How can Radagast come across Gandalf and Thorin's company?

Generate Brainfuck for the numbers 1–255

Are differences between uniformly distributed numbers uniformly distributed?

On Math Looking Obvious in Retrospect

Can you castle with a "ghost" rook?

How should an administrative assistant reply to student addressing them as "Professor" or "Doctor"?

Should you play baroque pieces a semitone lower?

How to mark beverage cans in a cooler for a blind person?



create a tuple from pairs


What is the equivalent of the C++ Pair<L,R> in Java?How can I safely create a nested directory?What's the difference between lists and tuples?What are “named tuples” in Python?Is Using .NET 4.0 Tuples in my C# Code a Poor Design Decision?How to sort (list/tuple) of lists/tuples by the element at a given index?Convert list to tuple in PythonChoose two tuples from a list and calculate every possible pair in Python






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








6















I would like to create a tuple which present all the possible pairs from two tuples



this is example for what I would like to receive :



first_tuple = (1, 2)
second_tuple = (4, 5)
mult_tuple(first_tuple, second_tuple)


output :



((1, 4), (4, 1), (1, 5), (5, 1), (2, 4), (4, 2), (2, 5), (5, 2))


This is what I did which succeed however look a bit cumbersome :



def mult_tuple(tuple1, tuple2):
ls=[]
for t1 in tuple1:

for t2 in tuple2:
c=(t1,t2)
d=(t2,t1)
ls.append(c)
ls.append(d)

return tuple(ls)


first_tuple = (1, 2)
second_tuple = (4, 5)
mult_tuple(first_tuple, second_tuple)


The code I wrote works , however I am looking for a nicer code

thank you in advance










share|improve this question





















  • 4





    itertools.product will get you half-way there.

    – DeepSpace
    8 hours ago






  • 1





    You might also want to consider if you’re looking for unique tuples. Would you want to add both (1, 1) and it’s reverse?

    – donkopotamus
    8 hours ago

















6















I would like to create a tuple which present all the possible pairs from two tuples



this is example for what I would like to receive :



first_tuple = (1, 2)
second_tuple = (4, 5)
mult_tuple(first_tuple, second_tuple)


output :



((1, 4), (4, 1), (1, 5), (5, 1), (2, 4), (4, 2), (2, 5), (5, 2))


This is what I did which succeed however look a bit cumbersome :



def mult_tuple(tuple1, tuple2):
ls=[]
for t1 in tuple1:

for t2 in tuple2:
c=(t1,t2)
d=(t2,t1)
ls.append(c)
ls.append(d)

return tuple(ls)


first_tuple = (1, 2)
second_tuple = (4, 5)
mult_tuple(first_tuple, second_tuple)


The code I wrote works , however I am looking for a nicer code

thank you in advance










share|improve this question





















  • 4





    itertools.product will get you half-way there.

    – DeepSpace
    8 hours ago






  • 1





    You might also want to consider if you’re looking for unique tuples. Would you want to add both (1, 1) and it’s reverse?

    – donkopotamus
    8 hours ago













6












6








6


1






I would like to create a tuple which present all the possible pairs from two tuples



this is example for what I would like to receive :



first_tuple = (1, 2)
second_tuple = (4, 5)
mult_tuple(first_tuple, second_tuple)


output :



((1, 4), (4, 1), (1, 5), (5, 1), (2, 4), (4, 2), (2, 5), (5, 2))


This is what I did which succeed however look a bit cumbersome :



def mult_tuple(tuple1, tuple2):
ls=[]
for t1 in tuple1:

for t2 in tuple2:
c=(t1,t2)
d=(t2,t1)
ls.append(c)
ls.append(d)

return tuple(ls)


first_tuple = (1, 2)
second_tuple = (4, 5)
mult_tuple(first_tuple, second_tuple)


The code I wrote works , however I am looking for a nicer code

thank you in advance










share|improve this question
















I would like to create a tuple which present all the possible pairs from two tuples



this is example for what I would like to receive :



first_tuple = (1, 2)
second_tuple = (4, 5)
mult_tuple(first_tuple, second_tuple)


output :



((1, 4), (4, 1), (1, 5), (5, 1), (2, 4), (4, 2), (2, 5), (5, 2))


This is what I did which succeed however look a bit cumbersome :



def mult_tuple(tuple1, tuple2):
ls=[]
for t1 in tuple1:

for t2 in tuple2:
c=(t1,t2)
d=(t2,t1)
ls.append(c)
ls.append(d)

return tuple(ls)


first_tuple = (1, 2)
second_tuple = (4, 5)
mult_tuple(first_tuple, second_tuple)


The code I wrote works , however I am looking for a nicer code

thank you in advance







python tuples






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 8 hours ago









MrGeek

8,9192 gold badges14 silver badges36 bronze badges




8,9192 gold badges14 silver badges36 bronze badges










asked 8 hours ago









zachizachi

333 bronze badges




333 bronze badges










  • 4





    itertools.product will get you half-way there.

    – DeepSpace
    8 hours ago






  • 1





    You might also want to consider if you’re looking for unique tuples. Would you want to add both (1, 1) and it’s reverse?

    – donkopotamus
    8 hours ago












  • 4





    itertools.product will get you half-way there.

    – DeepSpace
    8 hours ago






  • 1





    You might also want to consider if you’re looking for unique tuples. Would you want to add both (1, 1) and it’s reverse?

    – donkopotamus
    8 hours ago







4




4





itertools.product will get you half-way there.

– DeepSpace
8 hours ago





itertools.product will get you half-way there.

– DeepSpace
8 hours ago




1




1





You might also want to consider if you’re looking for unique tuples. Would you want to add both (1, 1) and it’s reverse?

– donkopotamus
8 hours ago





You might also want to consider if you’re looking for unique tuples. Would you want to add both (1, 1) and it’s reverse?

– donkopotamus
8 hours ago












6 Answers
6






active

oldest

votes


















1














Here is an ugly one-liner.



first_tuple = (1, 2)
second_tuple = (4, 5)
tups = [first_tuple, second_tuple]
res = [(i, j) for x in tups for y in tups for i in x for j in y if x is not y]
# [(1, 4), (1, 5), (2, 4), (2, 5), (4, 1), (4, 2), (5, 1), (5, 2)]





share|improve this answer
































    6














    You can use itertools's product and permutations:



    from itertools import product, permutations

    ls = []

    for tup in product(first_tuple, second_tuple):
    ls.extend(list(permutations(tup)))

    print(ls)


    Output:



    [(1, 4), (4, 1), (1, 5), (5, 1), (2, 4), (4, 2), (2, 5), (5, 2)]


    product produces the tuples produced equally by the double for loop structure, and permutations produces the two permutations produced equally by your c and d variables, extend is used here instead of two appends.






    share|improve this answer


































      2














      itertools.product gives you what you want. However, since the Cartesian product of two tuples is not commutative (product(x,y) != product(y,x)), you need to compute both and concatenate the results.



      >>> from itertools import chain, product
      >>> x = (1,4)
      >>> y = (2, 5)
      >>> list(chain(product(x,y), product(y,x)))
      [(1, 2), (1, 5), (4, 2), (4, 5), (2, 1), (2, 4), (5, 1), (5, 4)]


      (You can use chain here instead of permutations because there are only two permutations of a 2-tuple, which are easy enough to specify explicitly.)






      share|improve this answer


































        1














        If you’d like to avoid the use of the standard library (itertools) then simply combine two list comprehensions:



        result = [(x, y) for x in first_tuple for y in second_tuple]
        result.extend( (x, y) for x in second_tuple for y in first_tuple )


        then convert to a tuple if it’s important to you.






        share|improve this answer
































          1














          Also You can do:



          from itertools import permutations 
          t1=(1,2)
          t2=(3,4)
          my_tuple=tuple([key for key in filter(lambda x: x!=t1 and (x!=t2),list(permutations(t1+t2,2)))])





          share|improve this answer










          New contributor



          lostCode is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




























            1














            first_tuple = (1, 2)
            second_tuple = (4, 5)

            out = []
            for val in first_tuple:
            for val2 in second_tuple:
            out.append((val, val2))
            out.append((val2, val))

            print(tuple(out))


            Prints:



            ((1, 4), (4, 1), (1, 5), (5, 1), (2, 4), (4, 2), (2, 5), (5, 2))





            share|improve this answer





























              Your Answer






              StackExchange.ifUsing("editor", function ()
              StackExchange.using("externalEditor", function ()
              StackExchange.using("snippets", function ()
              StackExchange.snippets.init();
              );
              );
              , "code-snippets");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "1"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f57453407%2fcreate-a-tuple-from-pairs%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              6 Answers
              6






              active

              oldest

              votes








              6 Answers
              6






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              1














              Here is an ugly one-liner.



              first_tuple = (1, 2)
              second_tuple = (4, 5)
              tups = [first_tuple, second_tuple]
              res = [(i, j) for x in tups for y in tups for i in x for j in y if x is not y]
              # [(1, 4), (1, 5), (2, 4), (2, 5), (4, 1), (4, 2), (5, 1), (5, 2)]





              share|improve this answer





























                1














                Here is an ugly one-liner.



                first_tuple = (1, 2)
                second_tuple = (4, 5)
                tups = [first_tuple, second_tuple]
                res = [(i, j) for x in tups for y in tups for i in x for j in y if x is not y]
                # [(1, 4), (1, 5), (2, 4), (2, 5), (4, 1), (4, 2), (5, 1), (5, 2)]





                share|improve this answer



























                  1












                  1








                  1







                  Here is an ugly one-liner.



                  first_tuple = (1, 2)
                  second_tuple = (4, 5)
                  tups = [first_tuple, second_tuple]
                  res = [(i, j) for x in tups for y in tups for i in x for j in y if x is not y]
                  # [(1, 4), (1, 5), (2, 4), (2, 5), (4, 1), (4, 2), (5, 1), (5, 2)]





                  share|improve this answer













                  Here is an ugly one-liner.



                  first_tuple = (1, 2)
                  second_tuple = (4, 5)
                  tups = [first_tuple, second_tuple]
                  res = [(i, j) for x in tups for y in tups for i in x for j in y if x is not y]
                  # [(1, 4), (1, 5), (2, 4), (2, 5), (4, 1), (4, 2), (5, 1), (5, 2)]






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 7 hours ago









                  hilberts_drinking_problemhilberts_drinking_problem

                  6,8243 gold badges14 silver badges32 bronze badges




                  6,8243 gold badges14 silver badges32 bronze badges


























                      6














                      You can use itertools's product and permutations:



                      from itertools import product, permutations

                      ls = []

                      for tup in product(first_tuple, second_tuple):
                      ls.extend(list(permutations(tup)))

                      print(ls)


                      Output:



                      [(1, 4), (4, 1), (1, 5), (5, 1), (2, 4), (4, 2), (2, 5), (5, 2)]


                      product produces the tuples produced equally by the double for loop structure, and permutations produces the two permutations produced equally by your c and d variables, extend is used here instead of two appends.






                      share|improve this answer































                        6














                        You can use itertools's product and permutations:



                        from itertools import product, permutations

                        ls = []

                        for tup in product(first_tuple, second_tuple):
                        ls.extend(list(permutations(tup)))

                        print(ls)


                        Output:



                        [(1, 4), (4, 1), (1, 5), (5, 1), (2, 4), (4, 2), (2, 5), (5, 2)]


                        product produces the tuples produced equally by the double for loop structure, and permutations produces the two permutations produced equally by your c and d variables, extend is used here instead of two appends.






                        share|improve this answer





























                          6












                          6








                          6







                          You can use itertools's product and permutations:



                          from itertools import product, permutations

                          ls = []

                          for tup in product(first_tuple, second_tuple):
                          ls.extend(list(permutations(tup)))

                          print(ls)


                          Output:



                          [(1, 4), (4, 1), (1, 5), (5, 1), (2, 4), (4, 2), (2, 5), (5, 2)]


                          product produces the tuples produced equally by the double for loop structure, and permutations produces the two permutations produced equally by your c and d variables, extend is used here instead of two appends.






                          share|improve this answer















                          You can use itertools's product and permutations:



                          from itertools import product, permutations

                          ls = []

                          for tup in product(first_tuple, second_tuple):
                          ls.extend(list(permutations(tup)))

                          print(ls)


                          Output:



                          [(1, 4), (4, 1), (1, 5), (5, 1), (2, 4), (4, 2), (2, 5), (5, 2)]


                          product produces the tuples produced equally by the double for loop structure, and permutations produces the two permutations produced equally by your c and d variables, extend is used here instead of two appends.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited 7 hours ago

























                          answered 8 hours ago









                          MrGeekMrGeek

                          8,9192 gold badges14 silver badges36 bronze badges




                          8,9192 gold badges14 silver badges36 bronze badges
























                              2














                              itertools.product gives you what you want. However, since the Cartesian product of two tuples is not commutative (product(x,y) != product(y,x)), you need to compute both and concatenate the results.



                              >>> from itertools import chain, product
                              >>> x = (1,4)
                              >>> y = (2, 5)
                              >>> list(chain(product(x,y), product(y,x)))
                              [(1, 2), (1, 5), (4, 2), (4, 5), (2, 1), (2, 4), (5, 1), (5, 4)]


                              (You can use chain here instead of permutations because there are only two permutations of a 2-tuple, which are easy enough to specify explicitly.)






                              share|improve this answer































                                2














                                itertools.product gives you what you want. However, since the Cartesian product of two tuples is not commutative (product(x,y) != product(y,x)), you need to compute both and concatenate the results.



                                >>> from itertools import chain, product
                                >>> x = (1,4)
                                >>> y = (2, 5)
                                >>> list(chain(product(x,y), product(y,x)))
                                [(1, 2), (1, 5), (4, 2), (4, 5), (2, 1), (2, 4), (5, 1), (5, 4)]


                                (You can use chain here instead of permutations because there are only two permutations of a 2-tuple, which are easy enough to specify explicitly.)






                                share|improve this answer





























                                  2












                                  2








                                  2







                                  itertools.product gives you what you want. However, since the Cartesian product of two tuples is not commutative (product(x,y) != product(y,x)), you need to compute both and concatenate the results.



                                  >>> from itertools import chain, product
                                  >>> x = (1,4)
                                  >>> y = (2, 5)
                                  >>> list(chain(product(x,y), product(y,x)))
                                  [(1, 2), (1, 5), (4, 2), (4, 5), (2, 1), (2, 4), (5, 1), (5, 4)]


                                  (You can use chain here instead of permutations because there are only two permutations of a 2-tuple, which are easy enough to specify explicitly.)






                                  share|improve this answer















                                  itertools.product gives you what you want. However, since the Cartesian product of two tuples is not commutative (product(x,y) != product(y,x)), you need to compute both and concatenate the results.



                                  >>> from itertools import chain, product
                                  >>> x = (1,4)
                                  >>> y = (2, 5)
                                  >>> list(chain(product(x,y), product(y,x)))
                                  [(1, 2), (1, 5), (4, 2), (4, 5), (2, 1), (2, 4), (5, 1), (5, 4)]


                                  (You can use chain here instead of permutations because there are only two permutations of a 2-tuple, which are easy enough to specify explicitly.)







                                  share|improve this answer














                                  share|improve this answer



                                  share|improve this answer








                                  edited 7 hours ago

























                                  answered 7 hours ago









                                  chepnerchepner

                                  282k40 gold badges277 silver badges375 bronze badges




                                  282k40 gold badges277 silver badges375 bronze badges
























                                      1














                                      If you’d like to avoid the use of the standard library (itertools) then simply combine two list comprehensions:



                                      result = [(x, y) for x in first_tuple for y in second_tuple]
                                      result.extend( (x, y) for x in second_tuple for y in first_tuple )


                                      then convert to a tuple if it’s important to you.






                                      share|improve this answer





























                                        1














                                        If you’d like to avoid the use of the standard library (itertools) then simply combine two list comprehensions:



                                        result = [(x, y) for x in first_tuple for y in second_tuple]
                                        result.extend( (x, y) for x in second_tuple for y in first_tuple )


                                        then convert to a tuple if it’s important to you.






                                        share|improve this answer



























                                          1












                                          1








                                          1







                                          If you’d like to avoid the use of the standard library (itertools) then simply combine two list comprehensions:



                                          result = [(x, y) for x in first_tuple for y in second_tuple]
                                          result.extend( (x, y) for x in second_tuple for y in first_tuple )


                                          then convert to a tuple if it’s important to you.






                                          share|improve this answer













                                          If you’d like to avoid the use of the standard library (itertools) then simply combine two list comprehensions:



                                          result = [(x, y) for x in first_tuple for y in second_tuple]
                                          result.extend( (x, y) for x in second_tuple for y in first_tuple )


                                          then convert to a tuple if it’s important to you.







                                          share|improve this answer












                                          share|improve this answer



                                          share|improve this answer










                                          answered 8 hours ago









                                          donkopotamusdonkopotamus

                                          13.7k1 gold badge27 silver badges41 bronze badges




                                          13.7k1 gold badge27 silver badges41 bronze badges
























                                              1














                                              Also You can do:



                                              from itertools import permutations 
                                              t1=(1,2)
                                              t2=(3,4)
                                              my_tuple=tuple([key for key in filter(lambda x: x!=t1 and (x!=t2),list(permutations(t1+t2,2)))])





                                              share|improve this answer










                                              New contributor



                                              lostCode is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                              Check out our Code of Conduct.

























                                                1














                                                Also You can do:



                                                from itertools import permutations 
                                                t1=(1,2)
                                                t2=(3,4)
                                                my_tuple=tuple([key for key in filter(lambda x: x!=t1 and (x!=t2),list(permutations(t1+t2,2)))])





                                                share|improve this answer










                                                New contributor



                                                lostCode is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                Check out our Code of Conduct.























                                                  1












                                                  1








                                                  1







                                                  Also You can do:



                                                  from itertools import permutations 
                                                  t1=(1,2)
                                                  t2=(3,4)
                                                  my_tuple=tuple([key for key in filter(lambda x: x!=t1 and (x!=t2),list(permutations(t1+t2,2)))])





                                                  share|improve this answer










                                                  New contributor



                                                  lostCode is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                  Check out our Code of Conduct.









                                                  Also You can do:



                                                  from itertools import permutations 
                                                  t1=(1,2)
                                                  t2=(3,4)
                                                  my_tuple=tuple([key for key in filter(lambda x: x!=t1 and (x!=t2),list(permutations(t1+t2,2)))])






                                                  share|improve this answer










                                                  New contributor



                                                  lostCode is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                  Check out our Code of Conduct.








                                                  share|improve this answer



                                                  share|improve this answer








                                                  edited 6 hours ago





















                                                  New contributor



                                                  lostCode is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                  Check out our Code of Conduct.








                                                  answered 7 hours ago









                                                  lostCodelostCode

                                                  1366 bronze badges




                                                  1366 bronze badges




                                                  New contributor



                                                  lostCode is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                  Check out our Code of Conduct.




                                                  New contributor




                                                  lostCode is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                  Check out our Code of Conduct.


























                                                      1














                                                      first_tuple = (1, 2)
                                                      second_tuple = (4, 5)

                                                      out = []
                                                      for val in first_tuple:
                                                      for val2 in second_tuple:
                                                      out.append((val, val2))
                                                      out.append((val2, val))

                                                      print(tuple(out))


                                                      Prints:



                                                      ((1, 4), (4, 1), (1, 5), (5, 1), (2, 4), (4, 2), (2, 5), (5, 2))





                                                      share|improve this answer































                                                        1














                                                        first_tuple = (1, 2)
                                                        second_tuple = (4, 5)

                                                        out = []
                                                        for val in first_tuple:
                                                        for val2 in second_tuple:
                                                        out.append((val, val2))
                                                        out.append((val2, val))

                                                        print(tuple(out))


                                                        Prints:



                                                        ((1, 4), (4, 1), (1, 5), (5, 1), (2, 4), (4, 2), (2, 5), (5, 2))





                                                        share|improve this answer





























                                                          1












                                                          1








                                                          1







                                                          first_tuple = (1, 2)
                                                          second_tuple = (4, 5)

                                                          out = []
                                                          for val in first_tuple:
                                                          for val2 in second_tuple:
                                                          out.append((val, val2))
                                                          out.append((val2, val))

                                                          print(tuple(out))


                                                          Prints:



                                                          ((1, 4), (4, 1), (1, 5), (5, 1), (2, 4), (4, 2), (2, 5), (5, 2))





                                                          share|improve this answer















                                                          first_tuple = (1, 2)
                                                          second_tuple = (4, 5)

                                                          out = []
                                                          for val in first_tuple:
                                                          for val2 in second_tuple:
                                                          out.append((val, val2))
                                                          out.append((val2, val))

                                                          print(tuple(out))


                                                          Prints:



                                                          ((1, 4), (4, 1), (1, 5), (5, 1), (2, 4), (4, 2), (2, 5), (5, 2))






                                                          share|improve this answer














                                                          share|improve this answer



                                                          share|improve this answer








                                                          edited 6 hours ago

























                                                          answered 7 hours ago









                                                          Andrej KeselyAndrej Kesely

                                                          18k2 gold badges10 silver badges34 bronze badges




                                                          18k2 gold badges10 silver badges34 bronze badges






























                                                              draft saved

                                                              draft discarded
















































                                                              Thanks for contributing an answer to Stack Overflow!


                                                              • Please be sure to answer the question. Provide details and share your research!

                                                              But avoid


                                                              • Asking for help, clarification, or responding to other answers.

                                                              • Making statements based on opinion; back them up with references or personal experience.

                                                              To learn more, see our tips on writing great answers.




                                                              draft saved


                                                              draft discarded














                                                              StackExchange.ready(
                                                              function ()
                                                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f57453407%2fcreate-a-tuple-from-pairs%23new-answer', 'question_page');

                                                              );

                                                              Post as a guest















                                                              Required, but never shown





















































                                                              Required, but never shown














                                                              Required, but never shown












                                                              Required, but never shown







                                                              Required, but never shown

































                                                              Required, but never shown














                                                              Required, but never shown












                                                              Required, but never shown







                                                              Required, but never shown







                                                              Popular posts from this blog

                                                              Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

                                                              Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

                                                              199年 目錄 大件事 到箇年出世嗰人 到箇年死嗰人 節慶、風俗習慣 導覽選單