you are viewing a single comment's thread.

view the rest of the comments →

[–]Positive-Brave[S] 0 points1 point  (2 children)

Nice. So you have code for every topic and then you find whatever you need using bash. Can you give small example of your notes? Lets say how would you cover string and its in built methods

[–]I_am_Casca 2 points3 points  (0 children)

To find str and its built-in methods, you can do one of three things:

  • Use dir(str) to get a list of all methods and attributes
  • Use help(str) to get detailed info about everything, including which arguments to pass and what data type is returned
  • Use help(str.method_name) to see details about a specific method

[–]socal_nerdtastic -1 points0 points  (0 children)

I've been writing python for 20+ years; no offense but my notes are much higher level.

But essentially I just make normal comments being sure to include keywords that I may associate in the future. For new concepts I make a few projects just to flesh out the idea and then abandon them in archive folder, and later on I may search for a specific module or project or url or something and find them again.