Back in Business but without All the Colors of the Wind


 OK. As seen in the below (click on it to see bigger version), my program output is almost back to where I started except that "this" output has only yellows and was produced with: (1) the messages being all stored in a messages module, (2) the functions being stored in a separate functions module, (3) other variables being stored in a variables module and (4) with the MAIN Python file calling upon the functions to generate: (A) the "Welcome" mat, (B) a first listing of centered messages, and (C) a second listing of indented messages. The centered and indented messages were produced with just slightly different functions that use getattr(). 

Haven't gotten all the colors to work though. Don't know why. Maybe call on Pocahontas for help?
The idea of using the exec() function didn't pan out. Instead, the GET ATTRIBUTES function a.k.a. getattr(module_name, attribute_name) came to the rescue once again ... TO BE CONTINUED


footnote: The last few posts are probably boring. Hey! Life is not all pickles and cream. I'm sticking to my promise of journaling my beginner's travails, be they good or bad. It's been a bumpy road as of late.

MORE TO EXPLORE
Music to program by  -- YT search results
G4G -- The ASCII CODES
UNICODES Table --mid table

Comments

Popular posts from this blog

Links for Python Noobs

I Lied

Everything From Everywhere All At Once -- Doesn't Fly