Functions are bits of reusable code meant to comply with a single task, such as calculating the value of “e” for example. Python already has some built-in functions, such as “print ()”, but it also gives you the possibility to create your own. In order to define a function you use the command “def”, then … Continue reading Creating and calling Python functions
This has been the hardest quiz so far, still after figuring out the logic of the program it becomes something “not that hard”: My problem with the first question was that I forgot that the “!” was indicating the factorial of a number. After exploring my inner self I remembered this and answered. With the … Continue reading Quiz 11: “Em&em” + “Bananarama”
I had a very har time with this exercise, since at the time I had no idea of how to use loops, later I began to understand how stuff works and stopped getting stuck in things like this, though I still preffer to do things without recursión, because it makes finding mistakes easyer for me.
Quiet simple, since its the same as one of the first activities, the difference being that we used functions in this one.
Actually a much simpler quiz tan I thought it would be, my worst problem was searching for all the commands I needed to make the lists do my bidding.
Here! have a nice Lol
With the first part I had no problems at all, and the thing with the Fibonacci sequence is that I tried to do it in a way more complicated way, but after thinking about the structure of what I wanted to do I realized that it was much MUCH simpler that I thought it was. … Continue reading Quiz 7: Distance between two points & oh god why! (Fibonacci)
Even after this Quiz I realized that I lack a lot more practice and that if I slow down my pace things will get ugly. Lets keep pressing on!
As we are just getting started we will deal with three kinds of data: “String”, “Integer” and “Float”. Each of this types handles a different “species” of data, even if variables may seem the same they are in reality VERY different from each other. Let us imagine we have a variable “x = 5.4”, we … Continue reading Basic data types…
When working on a lengthy code, there can be loads of confusions and errors since it is difficult to keep track of the function of so much text. There also can be plenty of bugs from working with a team of people, who all have a different style and way of seeing things. This is … Continue reading Use “print” and comments…