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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:24:14+00:00 2026-06-08T22:24:14+00:00

For example, I have a list like this: list1 = [‘good’, ‘bad’, ‘tall’, ‘big’]

  • 0

For example, I have a list like this:

list1 = ['good', 'bad', 'tall', 'big']

list2 = ['boy', 'girl', 'guy', 'man']

and I want to make a list like this:

list3 = ['goodboy', 'badgirl', 'tallguy', 'bigman']

I tried something like these:

list3=[]
list3 = list1 + list2

but this would only contain the value of list1

So I used for :

list3 = []
for a in list1:
 for b in list2:
  c = a + b
  list3.append(c)

but it would result in too many lists(in this case, 4*4 = 16 of them)

  • 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-08T22:24:15+00:00Added an answer on June 8, 2026 at 10:24 pm

    You can use list comprehensions with zip:

    list3 = [a + b for a, b in zip(list1, list2)]
    

    zip produces a list of tuples by combining elements from iterables you give it. So in your case, it will return pairs of elements from list1 and list2, up to whichever is exhausted first.

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

Sidebar

Related Questions

Let's assume I have 2 List<T> List1 and List2 that look like this: List
I have a list like this, say for example the list name is output
I have some list of dicts like this: list1 = [ dict(RL = 'rl1',
I have a list within a data frame (in this example, df$candpct ), and
Suppose I have a bulleted list like this: * list item 1 * list
I have a list of recipes obtained from a database that looks like this:
I have a list like this: <ul id=linkList> <li> <a href=/C2D>NotesA</a> </li <li> <a
I have a list like this: val l= List((Agent, PASS), (Agent, FAIL), (Agent 1,
Say for an example, I've a list like this: q_list = [('94.vmtest2', 'sgmops', 'Andy
I have a list like this: A = [{u'CI': {u'RP': 1}}, {u'CI': {u'RP': 1}},

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.