We’re approaching to the end of the course!! And I am finishing up my WSQ tasks. In this post I’m presenting you, my dear reader, the GDCC3000. The GDCC3000 is a code I wrote to calculate the greatest common divisor of two number. I used Euclid’s algorithm. This guy was smart because by using his […]
We’re approaching to the end of the course!! And I am finishing up my WSQ tasks. In this post I’m presenting you, my dear reader, the GDCC3000. The GDCC3000 is a code I wrote to calculate the greatest common divisor of two number. I used Euclid’s algorithm. This guy was smart because by using his […]
This was kind of hard to do the right way. I tried to ask the user for numbers separately and then do calculations with all of these as variables before realising it was kind of wrong so I read the List chapter and understood how to use loops for it. In this way, my code […]
So this is simple factorial calculator, it was kind of easy to do. This is factorialcalc.py in action!
In this WSQ I have fun with numbers, again! I’m sure my code can be optimized but I tried to write it as clean i.e. readable, as possible. So yeah, all I did was print some options for the user and ask for two numbers to work with. Finally, I created some functions so they are […]
This was challenging but surprisingly fun. I had some problems that were solved understanding what I was doing so the book helped me a lot.
This is my code:
This is Sumofnumbers.py in action:
Sum of a RANGE of numbers. This WSQ was a little bit more difficult, than the ones before. I got inspiration from a friend’s code but I didn’t liked so I change some parts of his code. First I would like you to see my code. I tried used a function and a condition while […]
Guess! This WSQ is about a program that picks a number from 1 to 100 and then asks the user to guess the number. The program must give clues like “Too high or too low”. At the end the program prints how many times you tried. Here is my code: I had to do some […]
On the top of this blog (Octavio’s Blog) there is a link to “An about page of Nic Cage”. Feel free to check it out. It is my WSQ04 task.
Fun with Numbers! “Plato claimed that numbers exist in some mind-independent abstract heaven. Nominalists claim that there is no such heaven. Clearly, we can’t see, hear, taste or feel numbers. But if there are no numbers what is mathematics all about? “ (Rosen, 2006) Oh numbers! Making our life beautiful since their invention. Actually, what would […]