Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8016893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:40:30+00:00 2026-06-04T20:40:30+00:00

How do i find a max of a several tuples compared parallely which is

  • 0

How do i find a max of a several tuples compared parallely which is stored in a dictionary.

d = {'one':(2,9,6), 'two':(7,2,1), 'three':(1,5,12)}

So, tuples (2,9,6),(7,2,1) and (1,5,12) ‘zipped’ produces the max i.e. (7,9,12).

Please help to advice.

(edited for the numbers confusion)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T20:40:31+00:00Added an answer on June 4, 2026 at 8:40 pm

    I’m not fully sure from your question what you are looking for, but the zip part made me think that this is what you want:

    d = {'one':(1,2,3), 'two':(3,2,1), 'three':(4,5,6)}
    tuple(max(x) for x in zip(*d.values()))
    

    This actually zips the tuples together (first element of first tuple with first element of second tuple and so on) and then finds the max for each of these zipped tuples.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to find the max value contained in two separate fields of my
I'm using Python's max function to find the largest integer in a dictionary called
How can you find the max of several columns that are created in a
I want to find the max value in a column. Column values are, E00004,
I am using cursor to find out max id number then I need to
In Java, I need an algorithm to find the max. number of occurrences in
I'm looking for an algorithm to find bounding box (max/min points) of a closed
Is there a way to find out the number of digits of min/max values
I need to find the indexes in the vector based on several boolean predicates.
I wrote some c# code, which implements the transfer of several functions. I used

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.