I hereby claim:
- I am ramsesoriginal on github.
- I am ramsesoriginal (https://keybase.io/ramsesoriginal) on keybase.
- I have a public key ASB8Fg0ZSuMmbJ4BXHSNsp6uL7ZcVyBFHDVljMKbxE1W2Qo
To claim this, I am signing this object:
MatNatFat | |
name: MatNatFat | |
Cont | |
name: Controlling | |
parent: MatNatFat | |
Rec | |
name: Recherche | |
parent: MatNatFat | |
Ent |
def test(): | |
class Node(object): | |
def __init__(self, name, *successors): | |
self.successors = list(successors) | |
self.name = name | |
self.color = "white" | |
def __repr__(self): |
def computeAndPrint(type, start, nodes, edges): | |
G = type(nodes, edges) | |
ford(G, nodes[start]) | |
print("Ford von " + nodes[start].name + " mit " + type.__name__) | |
print([n.name + " y:" + str(n.y) for n in nodes]) | |
print([(n.p.name if n.p is not None else "None") + "->" + n.name for n in nodes]) | |
print('') | |
def test(): |
seeds = [\ | |
[], | |
[[]], | |
[[],[]], | |
[[0]], | |
[[1]], | |
[[0],[0]], | |
[[1],[0]], | |
[[0],[0],[0]], |
I hereby claim:
To claim this, I am signing this object:
def test(): | |
def do_test(t, args): | |
lok = False | |
try: | |
if len(args) == 3: | |
p, l, r = args | |
retVal = t(p, l) | |
lok = retVal == r | |
else: |
def list_to_set(l): | |
for i, e in enumerate(l): | |
len_before = len(l[i]) | |
l[i] = set(e) | |
if len(l[i]) != len_before: | |
l[i] = None | |
return sorted(l) | |
def test(): |
import traceback | |
from PA06_v2 import multiply, power | |
def do_test(A, B, C, POW): | |
try: | |
result = multiply(A, B) | |
if result != C: | |
print('multiply({}, {})'.format(A, B)) | |
print('\tsollte sein: {}'.format(C)) | |
print('\twar aber: {}'.format(result)) |
'''Modus 0: | |
13*[(45+48+{20}+{29}*9)+15+7]+50+39 | |
13*[(45+48+20+29*9)+15+7]+50+39 | |
13*[374+15+7]+50+39 | |
13*396+50+39 | |
5237 | |
Modus 1: | |
13*[(45+48+{20}+{29}*9)+15+7]+50+39 | |
13*[(45+48+20+29*9)+15+7]+50+39 |
test_liste = [1,2,"3", True, 10] | |
test1 = sublist(test_liste, 2, 4) | |
assert test1==["3", True] | |
test2 = sublist(test_liste, None, 4) | |
assert test2==[1, 2, "3", True] |