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 8195469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:08:58+00:00 2026-06-07T05:08:58+00:00

As the topic suggests I am attempting to take integers (in tuples) from one

  • 0

As the topic suggests I am attempting to take integers (in tuples) from one list and to to add them to another using the pop function

Here’s what I have so far and am stuck doing so.

loga = [(912, "Message A1") , (1000, "Message A2") , (988, "Message A3") , (1012, "Message A4") , (1002, "Message A5")]

logb = [(926, "Message B1") , (1008, "Message B2") , (996, "Message B3") , (1019, "Message B4") , (1100, "Message B5")]

logc = [(1056,"Message C1") , (1033, "Message C2") , (999, "Message C3") , (1054, "Message C4") , (1086, "Message C5")]

logs = [loga, logb, logc]

def find_lowest_i(logs):
    for i in range(len(lst)):
        log = lst(i)

if len(log) > t = log[0][0]

    if i==0 or t < lowest_t
    lowest_i = i
    lowest_t = t

return i
  • 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-07T05:08:59+00:00Added an answer on June 7, 2026 at 5:08 am
    loga = [(912, "Message A1") , (1000, "Message A2") , (988, "Message A3") , (1012, "Message A4") , (1002, "Message A5")]
    
    logb = [(926, "Message B1") , (1008, "Message B2") , (996, "Message B3") , (1019, "Message B4") , (1100, "Message B5")]
    
    logc = [(1056,"Message C1") , (1033, "Message C2") , (999, "Message C3") , (1054, "Message C4") , (1086, "Message C5")]
    
    logs = [loga, logb, logc]
    final=[]
    for log in logs:
        for tup in log:
            final.append(tup[0])
    lowest_number=min(int(x) for x in final)
    return lowest_number
    

    That should do the trick for you, it works by iterating over loga,logb,logc through the logs list, appending the numbers to the final list, then using a list comprehension with the min() function to get the lowest number.

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

Sidebar

Related Questions

I've read many answers here about this topic, but everyone suggests the BCP ||
topic.php $id = isset($_GET['id']) ? intval($_GET['id']) : 0; $query = mysql_query(SELECT * FROM topics
As topic suggested, how can I unit test a function that does not return
The topic says it all. Using Compact Framework C# I'm tiling (order/sequence is important)
I'm trying to publish messages to RabbitMQ, from a Ruby script (using Bunny )
I read this topic, but his problem maybe different from mine Writing to both
I have an application that consumes messages from a JMS topic. As part of
As the topic suggests I have some problems with PropertyInfo.SetValue. To get to the
As the topic suggests I have a server and some clients. The server accepts
I have tried multiple tutorials on this topic from Forta.com and yet run into

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.