Sorry.. I am new to this forum. I tried to find solution from older threads but couldn't. Here I am starting a new thread.
My doubt is that suppose i want to do one looping process to assign values, how I have to do.
For example:
Having one list like L1 =
need to do pop operation and assign value like,
z1 = L1.pop()
z2 = L2.pop()
z3 = L3.pop()
...
similarly upto length of the list. Please give a solution.
wanne
0
Newbie Poster
Recommended Answers
Jump to PostWhat do you want to accomplish?
Here is simple Looping. It prints what is popedL1 = ["a", "b", "c", "d"] for i in range(len(L1)): print "Poped: %s" %(L1.pop())
Jump to Postoutput
Poped: d
Poped: c
Poped: b
Poped: a
All 5 Replies
sravan953
Stefano Mtangoo
455
Senior Poster
Stefano Mtangoo
455
Senior Poster
shadwickman
159
Posting Pro in Training
woooee
814
Nearly a Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.