Python slightly complicated for loop
By
aikoels
in Programming
in Programming
Go to solution
Solved by fizzlesticks,
So you want to combine multiple lists and iterate over the result? If so you can just add the lists together.
test1 = ['test', 'peanut']test2 = ['pie', 'cake']for x in test1 + test2: print x
-
Topics
-
3
-
YoungBlade ·
Posted in CPUs, Motherboards, and Memory9 -
5
-
derekchan ·
Posted in New Builds and Planning9 -
1
-
2
-
6
-
5
-
7
-
kerriya ·
Posted in Cases and Mods14
-
-
play_circle_filled
Latest From ShortCircuit:
The coolest looking monitor. Period. - ASUS ROG display at Computex (Sponsored)

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now