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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:05:37+00:00 2026-06-18T04:05:37+00:00

hi all im stuck at my python script i have 2list a&b The list

  • 0

hi all im stuck at my python script i have 2list a&b
The list A contain tuple which iuse for looping trought the list
The b contain only value that i want to increment so each time the “a” complete i want to return value

A=[(a,b,c),(a,b,c).(a,b,c),(a,b,c)]
B=["a","b","c",'d']
for x in a:
  Print " yo"
  itert=B.__iter()__
  Y=itert.next()
  print y

and its returning yo a,yo a,yo a,yo a yo b,yo b,yo b,yo b,yo b ...

But i want yo a,yo b,yo c,yo d, yo a,yo b,yo c,yo d ...

Sorry for the exeple but its the best way i can explain thx a lot

  • 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-18T04:05:38+00:00Added an answer on June 18, 2026 at 4:05 am

    Yea im sorry ,im really not good in english what I meant is Iterating two list a the same time like

    for a,b in zip(listA,listB):
    print a,b

    Its basic list iteration im really sorry for my bad
    English and exemple

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

Sidebar

Related Questions

I have a python script which must call a perl script to get data
I have a simple python script which calls 6 threads and for some reason
So, I'm trying to make myself a Python script which goes through the selected
I have a file which I use to centralize all strings used in my
I'm currently busy making a Python ORM which gets all of its information from
I'm making a script parser in python and I'm a little stuck. I am
I am writing a Python script which runs some simulations, but it takes in
All, I'm writing a native application for Android and i'm stuck trying to acquire
it happens when i change the DataSource. i have checked everything(stack traces, all exception
I have a little test.sh script that I run from the command line ./test.sh

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.