Drawing With Code
Let's start by using Python to generate a drawing. This might seem far removed from what you think programming is, but making a visual connection to your algorithms is a fantastic way to build intuition for computer programming.
Conditional statements turn your static piece of code into something that can make decisions! This program allows for user input to decide what shape is drawn.
Complexity and Emergence
Nature uses simple algorithms to create incredible complexity. Try to create your own complex designs with a simple piece of code.
Recursion means "defining a problem in terms of itself". This can be a very powerful tool in writing algorithms. Recursion comes directly from Mathematics, where there are many examples of expressions written in terms of themselves. For example, the Fibonacci sequence is defined as: F(i) = F(i-1) + F(i-2)
Recursion is the process of defining a problem (or the solution to a problem) in terms of (a simpler version of) itself.
For example, we can define the operation "find your way home" as:
If you are at home, stop moving.
Take one step toward home.
"find your way home".
Create a program that generates all the fibonacci numbers under 5,000:
1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89,...
Day 4 Coding Challenges
What I Cannot build I do not understand. - Richard Feynman
Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”.
Learn more about FizzBuzz: http://wiki.c2.com/?FizzBuzzTest
Write a program that takes in a text file and runs computation on it. In particular, the program must count the number of words and overall sentiment of the text.
Use this Repl.it to start: https://repl.it/@MichaelOlaya1/Sentiment-Analysis-in-Python
A parting thought...
By Charles Bukowski
Parental Consent Form I, the undersigned, acknowledge that, as with all activities, there are some inherent risks of minor injury or accidents while participating in our courses. As such, in consideration of my child’s participation, on behalf of my self and/or my child, hereby release, discharge, covenant not to sue, and agree to indemnify and hold harmless Dexter Learning Company, employees, other participants, and the owners and lessors of the premises on which activities take place from any and all liability, claims, and causes of action arising out of or related to any loss or injury, that may be sustained by myself or my child, whether caused by the negligence or otherwise while participating in such activities, or while in, or upon the premises where the activity is being conducted. Dexter Learning is not licensed by the State of Texas Medical Care I, the undersigned, further give my permission for any emergency medical care or treatment by a physician, surgeon, hospital, or medical care facility that may be required, including transportation, and accept responsibility for the cost. I have read and understand the statement contained above and intend for others to rely on this representation. I, the undersigned, authorize staff/volunteers of Dexter Learning Company, in whose care the minor has been entrusted, to consent to any x-ray examination, anesthetic, medical, surgical, or dental diagnosis or treatment, and hospital care, to be rendered to the minor under the general or special supervision and on the advice of any licensed physician or dentist or the medical staff of a licensed hospital, whether such diagnosis or treatment is rendered at the office of said physician or at said hospital. The undersigned shall be liable and agree(s) to pay all costs and expenses incurred in connection with such medical and dental services rendered to the aforementioned child pursuant to this authorization. Media By signing below, you grant Dexter Learning the sole and unrestricted right to all images, testimonials, photos, video, and audio taken of aforementioned child while at Dexter Learning facilities and events, for use in Dexter Learning publications, printed or digital, as well as on Dexter's website and/or social media sites.