Skip to content

Instantly share code, notes, and snippets.

# [ENTER_SOURCE_CODE]
# A.G. (c) 2017. All Rights Reserved.
# January 4th, 2017
import time
class EnterSourceCode:
def __init__(self, time, filename, sourcecode, category):
self.time = time
self.filename = filename
# DATETIME: (date at top)
# EXPERIMENT: (number and title clearly stated)
# (Clear statement of purpose)
# PROCEDURE: (succinct description of procedure
# SIGNATURE:
# STOCK TICKER GAME IMPLEMENTATION
"""
>>> change_amount = [5, 10, 20]
>>> fluctuations_direction = ['up', 'down', 'dividend']
>>> stock_types = ['Gold', 'Silver', 'Oil', 'Industrial', 'Bonds', 'Grain']
>>> def up(account,change_amount):
return account+change_amount
>>> def down(account,change_amount):
return account-change_amount
import random
import time
ls1 = [' is it raining? ', ' what have I become? ', ' because ', ' since I know that answer ', ' because you asked me to ', ' - in the middle of it all - ', ' verily, verily, it was thus ', ' predicting the future ', ' raining hard, is it? ', ' data terrain built from constructivistic principles ' ]
ls2 = [' in the morning we saw a white mare ', ' poetic license is what I am told ', ' because ', ' and because ', ' always surely ', 'almost gigantesque ', ' almost certainly ', ' an infinitesimal change ', ' because the differential ', ' all the while ', ' is threatening our documentary heritage ', ' historiotherapeusis & historiopathogenesis ']
"""
>>> import random
>>> import time