Write a python program implementing a stack data structure, implement your solutions using the pythonds package(stack)Insert the names of big five animals (arrange them in
order of size = > as follows Elephant (approximately 5 tonnes +), Rhinoceros
(approximately 2 tonnes), Buffalo (650kg), Lion (225 kg), and Leopard (96kgs).
return the name Elephant and return the name Leopard infinitely
Comments
Leave a comment