Any Better logic for this problem..

2011-06-09 Thread Ganapathy Subramanium
Hi Guru's, I'm working on a solution to find the prime factor of the number This part of the code works.. http://www.pastie.org/2041584 When the number gets bigger, the range cannot iterate through bigger number and it does not work. When I googled , I came across creating our own range function

How to stop iteration

2011-06-05 Thread Ganapathy Subramanium
Hi All, I'm a new bie to programming and need some assistance in this code. I have a function which will split the given string into 3 characters each and I want to achieve this by recursion. I have written the following code, but I don't know how to stop the recursion when the length of the rem

Is there a better way to solve this?

2011-05-21 Thread Ganapathy Subramanium
Hello, I'm a new bie to python programming and on the processing of learning python programming. I have coded my first program of fibonnaci generation and would like to know if there are better ways of achieving the same. I still feel quite a few things to be improved. Just wanted experts thought