import random
class Trader:
def __init__(self, a, b, c):
self.Stock_a=a
self.Stock_b=b
self.Stock_c=c
def PriceDictionary(Stock_a, Stock_b, Stock_c):
stock={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 randomP():
return (random.random()*100)
def randomR():
return (random.random()+1)
def printStocks(self):
print("Trader is holding these stocks: %s, %s & %s" % (self.Stock_a, self.Stock_b, self.Stock_c))