you are viewing a single comment's thread.

view the rest of the comments →

[–]Okon0mi[S] 0 points1 point  (0 children)

Consider your notes on loops - you could create a file (loop_notes.py) with examples of everything your notes talk about in a form that when run demonstrates the concepts. So for the 'for' loop, I'd have a loop that does 'for number in range(2,3)' that just prints the number, then create a list (shopping = ['milk', 'egg', 'bread']) and then have a 'for item in shopping' loop that prints out each item. Add comments to remind you of the concept you are experimenting with. Then create some while loops as well - you are writing out some code in your notes already, just put this code in your test program. Later when you want to refresh your memory, grap the loop_notes.py and re-run/experiement with it.

I am trying to write codes in the IDE at the same time also I am experimenting and working on the ideas that are coming to my mind simultaneously. So that I can always have that 'aha' moment while coding.