This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import pika | |
import json | |
import uuid | |
import json | |
import os | |
from django.db import models | |
from django.conf import settings | |
from django.contrib.auth import get_user_model |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
class MathBalance(object): | |
def check(self, equation = ''): | |
return True | |
class TestMathCases(unittest.TestCase): | |
def test_first(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
""" | |
Implement a class Finances, which contains a function timeLeft. timeLeft is | |
passed three int values: initialValue, interest, monthly. | |
* The initial value of the bank account is initialValue. | |
* Interest is compounded monthly at a rate of interest percent. | |
* Every month monthly dollars is taken out from the account (immediately after | |
the Interest has been added). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding=utf-8 | |
from copy import copy | |
class FootbalScores(object): | |
def __init__(self, score): | |
self.points = [2,3,7] | |
self.solutions = list() | |
self.boundaries = list() | |
self.score = score |