Saturday, 28 September 2013

Week 2

Stacks and Queues are pretty easy to implement in python in comparison to other languages. Although Python is convenient, I still think Java is better. (Still biased). Lab 02 was pretty simple as instead of taking the last element, we just took the pop the first element and voila! a queue instead of a stack. Another thing I learned is its better to import stuff by using (from **** import ****) because importing the filename will require you to write filename.class (), when time can be saved by writing class (). I miss java where it all makes sense :(
>>> from __future__ import braces
SyntaxError: not a chance
:(

No comments:

Post a Comment