I have the following class constructor method:
def __init__(self, diagram, input=None):
if input == None:
input = ["b","c","a","d"]
self.input=input.sort()
However, this gives me None as the value for self.input. Why is using the sort() method leading to the value of None?