Hi,
In your Linked List implementation, I think temp is wrongly spelled as tamp. The code works but for readability purpose all tamp should be replaced by temp.
Also, I find it strange to name the head with a capital Head. Generally, capitalization in Python is saved for Class names, not class attributes or methods. If you think the code should be more Pythonic, please consider changing all Head to head in the class attributes for Linked List.
Hi,
In your Linked List implementation, I think
tempis wrongly spelled astamp. The code works but for readability purpose alltampshould be replaced bytemp.Also, I find it strange to name the
headwith a capitalHead. Generally, capitalization in Python is saved for Class names, not class attributes or methods. If you think the code should be more Pythonic, please consider changing allHeadtoheadin the class attributes for Linked List.