Search found 8 matches
Search found 8 matches • Page 1 of 1
I'd probably just convert the list into a list of pairs (two-tuples) before random.shuffle, which shouldn't be that hard. pairFound = False previousItem = None pairList =  for e in list: if pairFound: pairList.append((previousItem, e)) else: previousItem = e pairFound ^= True Rebuilding the list ...
So I'm a beginner in Python, as well as programming and I'm working on a program that is going to pull a few lines from a file and do something with them. Before I use the lines though, I'm trying to shuffle them around. As it is, I've got the strings paired in the file in two line sets. I.E. Apples...
- Wed Nov 12, 2008 4:29 am UTC
- Forum: Food
- Topic: The Xkcd Cookbook (with an unfinished index in the OP)
- Replies: 685
- Views: 232510
Owijad wrote:Well, in the aftermath of Easter I found a neat little recipe.deep fried peeps wrote:Step 1) Don't.
Step 2) I'm not kidding. Just don't.
I lol'd hard.
So after a short break(moving back to the USA from Norway) I am back in Eve and readying to go. I would like to pvp but with only 11 million isk and skills that allow only level 1s this is a slow process, any hints or tips anyone can give me? Agony Unleashed might be a good corp for you. I've not b...