So I have this code: https://pastebin.com/AzYEkgmr

My current problem is when the 'else' statement on deleteNode() runs, it doesn't shift all the nodes upwards and instead leaves the node which is meant to replace a further up one there.

Anyone got any ideas. I am using python 3.8.2 with pycharm community 2020.2.2