My very first blog post about my coding journey.
A little confusing with the .format area, needs more example and practice on that. Here’s my work: Study Drills 1. Go through this program and write a comment above each line explaining it. Done. 2. Find all the places where a string is put inside a string. There are four places. Found them. 3. […]Read more "Day 3.1 Strings and Text"
Nothing new this week, just new ways to print formatted variables, was not necessary in my opinion, since the old way works the same, there’s no extra keystrokes. Here’s my work: As noted with hints by Zed, you could add this function round() for the math path to make it rounded to the closest […]Read more "Day 3.0 More Variables and Printing"
Learned something new, without importing modules/libraries. In ruby, there’s a ceil or floor function to round up or down. In Python, unless importing modules/libraries, you have to write your own function or math calculation to do that. Here’s my code and my terminal. I’ve done some extra work to test out some python functions, feel […]Read more "Day 2.1 Variables and Names"
The excercise is the same as ruby, but in python code, study drills is slightly different, I don’t recall having to making numbers floating points. I’ve researched 2 ways to make them floating points, but not sure how precise or accurate the math is. Here’s my code and my shell, and the python computation (like […]Read more "Day 2.0 Numbers and Math"
Comments, it’s an excellent way to test codes, by hiding it. In CS50, we practice commenting every section of the code for readability. Study Drills Find out if you were right about what the # character does and make sure you know what it’s called (octothorpe or pound character). Commenting and disabling the codes to […]Read more "Day 1.1 Comments and Pound characters"
Just finished installing python 3.6 onto my Mac. So far so good, I believe the book is set up the same way as ruby… Same exact exercise, but with language difference. To be honest, i dont even remember the syntaxes for ruby, since I haven’t wrote any rubys since that book ended. Don’t see any […]Read more "Day 1.0 A Good First Python Program (not really)"
Haven’t been updating this blog for a while, got busy with work not too long after starting CS50 blog posts. I’ve also been taking classes for my Master in Software Engineering, learning java language. A lot of the concepts are similar to C language, very complicated and confusing, especailly when dealing with memories. I’ve finished […]Read more "Happy New Year 2018 everyone :D"