Folgender Input in Python, ...
print('rand', rand)
print(type(rand))
print('sol', sol)
print(type(sol))
b = rand.append(sol)
print('b', b)
print(type(b))
Liefert folgenden Output:
rand [['T', 'C', 'T', 'G']]
<class 'list'>
sol ['A', 'G', 'A', 'G']
<class 'list'>
b None
<class 'NoneType'>
Kann mir bitte irgendjemand erklären wieso "b" None vom Typ "NoneType" ist? Ich will einfach nur zu der Liste von Listen, mit append eine Liste hinzuzufügen