This repo is a different take/ revision repo of my last year's basic python repo https://github.com/ulrikSebastienR/python_thoughtful_2023
folder or archive notes
- write in comments full names, incomplete status and other general instructions for each program to make later searching easier
- search for a program grep -nr "factorial" for all files in which factorial program was ever tried
- For recursion, first write the terminating condition et apres the simple logic
- While loop, can not update the iterator itself, and you need to manually provide ways to iterator the iterator.
- for loop, step of recursion can not be altered after for loop has been defined once and for loop has fix step size. while loop and recursion allow us the flexibility to choose a step size of our choice.
- think if you have to check how the elements of a list will behave for a function, you need yield for such a case because with the normal function it will be more difficult to handle.
- reversal l[::-1] and list back indexing l[-1,-5]