13:05 ET Dow -154.48 at 10309.92, Nasdaq -37.61 at 2138.44, S&P -19.130 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 13:05 ET Dow -154.48 at 10309.92, Nasdaq -37.61 at 2138.44, S&P -19.1313:05 ET Dow -154.48 at 10309.92, Nasdaq -37.61 at 2138.44, S&P -19.13

.

.

Sunday, December 11, 2011

Just Some Python Scratch, In Progress

# square.py

import random
class Square:
    def __init__(self, a, b, c):
        self.Stock_a=a
        self.Stock_b=b
        self.Stock_c=c
       
    stock={Stock_a:, Stock_b:, Stock_c:}  
       
       
    def PriceDictionary(Stock_a, Stock_b, Stock_c):
        stock[Stock_a]=randomP()
        stock[Stock_b]=randomP()
        stock[Stock_c]=randomP()
   
       
    def returns(self):
        b=self.a * self.a
        print(b)
       
    def randomizerPrice():
        thelistP=[]
        self.stock1=(random.random()*100)
        self.stock2=(random.random()*100)
        self.stock3=(random.random()*100)  
        thelistP=[self.stock1,self.stock2,self.stock3]
        return thelist
   
    def randomP():
        return (random.random()*100)
       
       
    def randomizerReturns():
        thelistR=[]
        self.stock1=(random.random()+1)
        self.stock2=(random.random()+1)
        self.stock3=(random.random()+1)  
        thelistR=[self.stock1,self.stock2,self.stock3]
        return thelist