Experiencing the Learning Process as a Student (part 2)
After doing more research on Learning to Learn and adding the results to the Learn Page (here), I decided to re-watch the lecture on the different methods of CREATING a list object. Then went to my Scratch file, did my own version of the given RPy examples and prettified the output as shown to the right
------->
Couldn't get all of it in one screen grab. But you get the idea. I imported the color code escapes from my vars_01 module.
------->
-+-+-+-+-+-+-+-+--->
-=-=-=-=-=-=-=----->
(p.s. click on image to see it bigger)
The corresponding source code that produced the pretty (color enhanced) printouts is shown immediately below
------->
Couldn't get all of it in one screen grab. But you get the idea. I imported the color code escapes from my vars_01 module.
Next, reviewed the LIST COMPREHENSIONS video and tried some of my own
------->
By trial and FAILURE, I found out you can't get too fancy with these things. If you do, the printout is of the address of the object rather than its value.
The source code for the second
set of printouts follows next
-+-+-+-+-+-+-+-+--->
(again, click on it to see bigger version)
Note that we are now at the 'slicing' part of the lesson
Comments
Post a Comment