numbers = [n for n in range(1000, 10000)]
numbers = list(range(1000, 10000))
print(list(filter(lambda n: n % 10 in (2, 3, 4, 5), range(100))))
print([n for n in range(100) if n % 10 in (2, 3, 4, 5)])
print([m + n * 10 for n in range(10) for m in range(2, 6)])
def printSinglyLinkedList(node):
if node != None:
printSinglyLinkedList(node['next'])
print(node['value'])
printSinglyLinkedList(d)
def reverseSinglyLinkedList(head):
prevNode = None
currNode = head
while currNode != None:
nextNode = currNode['next']
currNode['next'] = prevNode
prevNode = currNode
currNode = nextNode
return prevNode