Links for use in Vivi Home Page 001
Latest Notes:
(001) June 04, 2026 Learn about Python OOPS (here)
(002) June 05, 2026 Learn about ___
FIND substring occurences in a STRING
(003) June 12, 2026 : Added footnotes page for the Links for Noobs page. Updated the Vivi Home Page 001 HTML file to ease editing of the Noobs page and the Footnotes page
(004) June 13, 2026 : Revised the footnote respecting which learning source is "best" for a given student.
(005) June 19, 2026 : Working on (dot)help method of Turtle_Trek. Problem is to apply the map() function {HERE} and join() function {HERE} for generating a left justified set of strings from output of dir() function {HERE}
I misunderstood the join function !!!
Wrote my own r_pad() right justification function
Used map() to apply r_pad to each element of dir(self) list !!!
def r_pad(self, txt = ' ', size = 20): # see gQAB ::: "python determine length of a string while inside an OOP method"
pad_on_int = size - len(txt)
pad_on = " " * pad_on_int
padded = txt + pad_on
return padded
def show_dir(self, begin, next):
show_txt = " ".join(list(map(self.r_pad,dir(self)[begin:next])))
return show_txt
(006) June xx, 2026 : Working on ???

Comments
Post a Comment