# 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