Jun-04-2020, 07:53 PM
(This post was last modified: Jun-04-2020, 07:53 PM by knackwurstbagel.)
In addition to what was previously said. Note that you are aware that
In addition id like to mention, I often spend time playing in the python repl and like to make discoveries of what methods are available to me for certain types, sometimes I forget or because I deal with multiple languages, I need to refresh my memory, I will use things like dir(str) or dir(dict) ... on various types
new_line_splitis a List type, are you sure that lists have the strip method? Also
Quote:- strip the trailing dot (.) and exclamation mark (!) from this last word,key here is the last word, If I want to know the last word of the new_line how would I do so. This is a list after all. documentation on string methods. also look for documentation on List methods, where does strip come from.
In addition id like to mention, I often spend time playing in the python repl and like to make discoveries of what methods are available to me for certain types, sometimes I forget or because I deal with multiple languages, I need to refresh my memory, I will use things like dir(str) or dir(dict) ... on various types