Advertisement
altoidnerd

while loop operand error

Jun 17th, 2014
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. # create a list taking every other entry beginning with 0
  2.  
  3. prices = s3[::2]
  4. k=1
  5. with open('{}_prices.py'.format(int(time.time())), 'a') as donkey:
  6.     while k<len(prices):
  7.         donkey.write('%r\n')%prices[k]
  8.         k+=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement