I hereby claim:
- I am j10sanders on github.
- I am dimpull (https://keybase.io/dimpull) on keybase.
- I have a public key ASBZGrKot6eTBHLAgevORCFJCPhQc2CFqkSaJyPzVB7kPAo
To claim this, I am signing this object:
| __author__ = 'Jonathan' | |
| while True: | |
| try: | |
| biggestnum = int(input("How many numbers should we count to? ")) | |
| if biggestnum <= 0: | |
| raise ValueError | |
| break | |
| except ValueError: | |
| print("That's not a positive integer.") |
| __author__ = 'Jonathan' | |
| import random | |
| questions = { | |
| "strong": "Do ye like yer drinks strong?", | |
| "salty": "Do ye like it with a salty tang?", | |
| "bitter": "Are ye a lubber who likes it bitter?", | |
| "sweet": "Would ye like a bit of sweetness with yer poison?", | |
| "fruity": "Are ye one for a fruity finish?" |
| __author__ = 'Jonathan' | |
| class Musician(object): | |
| def __init__(self, sounds): | |
| self.sounds = sounds | |
| def solo(self, length): | |
| for i in range(length): | |
| print(self.sounds[i % len(self.sounds)],) | |
| print("") |
| __author__ = 'Jonathan' | |
| class Bicycle(object): | |
| def __init__(self, modelname, weight, cost): | |
| self.modelname = modelname | |
| self.weight = weight | |
| self.cost = cost | |
| class BikeShop(object): | |
| def __init__(self, name, inventory, prod_cost): |
| tree = {'a': ['b', 'c'], | |
| 'b': ['d', 'e', 'f'], | |
| 'c': ['g'], | |
| 'd': [], | |
| 'e': [], | |
| 'f': [], | |
| 'g': ['h'], | |
| 'h': [] | |
| } |
| #https://projecteuler.net/problem=25 | |
| def fib(digits): | |
| f = i = 1 | |
| e = j = 0 | |
| while digits > len(str(f)): | |
| e = j | |
| j = f | |
| f = e + j | |
| i += 1 | |
| return f, i |
| def bb(n): | |
| prevstring = "" | |
| while n != prevstring: | |
| prevstring = n | |
| n = n.replace("()", "").replace("[]", "").replace("{}", "") | |
| return "YES" if n == "" else "NO" | |
| t = int(input().strip()) | |
| for a0 in range(t): |
| scores = {"a": 1, "e": 1, "i": 1, "l": 1, "n": 1, "o": 1, "r": 1, "s": 1, "t": | |
| 1, "u": 1, "d": 2, "g": 2, "b": 3, "c": 3, "m": 3, "p": 3, "f": 4, | |
| "h": 4, "v": 4, "w": 4, "y": 4, "k": 5, "j": 8, "x": 8, "q": 10, "z": 10} | |
| def scrabble(x, n, cases): | |
| words = [] | |
| wordscores = [] | |
| scrabble_ladder_l = [] | |
| scrabble_ladder_r = [] |
| class Musician(object): | |
| def __init__(self, sounds): | |
| self.sounds = sounds | |
| def solo(self, length): | |
| for i in range(length): | |
| print(self.sounds[i % len(self.sounds)], end=" ") | |
| print() | |
| class Bassist(Musician): # The Musician class is the parent of the Bassist class |
I hereby claim:
To claim this, I am signing this object: