Experiments on writing code for some small python algorithms, questions from different tutorial sites for python