The past week I didn't do too many exciting new things with programming. I basically just finished up the exercises in chapter 3. Most were easy. I enjoyed the Fibonacci sequence problem. However a little research online shows the Fibonacci sequence really starts 0, 1, 1, 2, 3, 5 and not 1, 1, 2, 3, 5. I also had to look up the formula for the Fibonacci sequence. After knowing the formula, writing a program to find a specific number in the sequence was easy. I'm not however, entirely sure how to write the desired program starting the sequence at 0, 1, 1. I also have not given it too much thought. If you have the book, I still do not know how to solve exercise 15. Some day I'll revisit it and figure out how to write a for loop so that it alternates addition and subtraction.**
The new chapter discuses object-oriented programming and requires a free download of a graphics library graphics.py. It was rather easy to find and the instructions for downloading it and what folder to put it in were quite easy. Also Python includes something called Tkinter, but according to the book, it will teach principles of computer graphics that should help with more in depth GUI frameworks.
Thus far I have used the graphics.py library to draw circles, text, squares, and other shapes. Also starting to learn how to manipulate these objects. However the brain power to comprehend this change to writng GUI programs is a little more difficult. In my high school programming class over 10 years ago we only ever used C++ for very basic text based data programs. My current schedule only allows a little programming every day, so I'll let this new information soak in over night and get back at it tomorrow.
** I'm open to suggestions. So if you know the problem I'm talking about feel free to contact me or post what to do to solve it.
No comments:
Post a Comment