In my free time, I decided to do some programming. As part of my “programming spree”, I decided to see if I could generate a Fibonacci sequence in Python. And yes I could! I thought that it was amazing and I wanted to share it with you guys. This post will be a very short one, but I hope that this post can show you how simple yet powerful Python can be. Before you continue reading, do follow me and subscribe to my newsletter!

#parameter "no" describes how long you want your sequence to be
def fibonacci(no):
nicelist = [1, 1]
first = 1
second = 1
third = 0
if no <= 0:
return "Nonsense!"
elif no == 1:
return [1]
elif no == 2:
return [1, 1]
elif no > 2:
for i in range(no-2):
third = first + second
nicelist.append(third)
first = second
second = third
return nicelist
#will print [1,1,2,3,5,8,13] !!!
print(fibonacci(7))

Most of us have ended up hating Mathematics in high school. It’s probably because Trigonometry and Calculus got on our nerves, or because some equations were just plain annoying. In the end, we might have told ourselves that Mathematics is nothing more than a torture device. But what if I told you that Mathematics has a greater purpose? In this article, we shall discuss the importance of Mathematics and why it is of paramount importance to the world. Before you continue reading, do follow me and subscribe to my newsletter (enter your email in the newsletter registration section of my homepage). Without further ado, let’s begin the discussion.

#1: Mathematics Is The Foundation Of The Sciences

There is a reason as to why you learn Mathematics before you learn Physics, Chemistry and Biology. Mathematics serves as the foundation for the sciences and helps to build up basic problem thinking skills, before you start tackling harder problems. For example, without a good understanding of ratio, you would not be able to understand the basic workings of stoichiometry in Chemistry. Furthermore, without the ability to solve equations and understand graphs, you would not be able to apply Newton’s Laws of Motion and the principles of kinematics.

#2: Mathematics Helps Us To Better Understand The World

The universe is ours to explore, but without the right tools, it is simply impossible. Mathematics helps to make sense of the world around and create new inventions. As mentioned earlier, it is the backbone of Engineering, Physics, Biology, Astronomy and many other sciences. With an understanding of Mathematics, we will be able to build complex machinery, spacecraft and satellites which will help us to explore the universe. Even the computer you are using right now is a creation of Mathematics. Let us take Isaac Newton for an example. To express his discoveries, he had to make use of equations and even invent a whole new branch of Mathematics, Calculus. Mathematics is the common language for all people on Earth, thereby uniting the human race in the common effort for further discoveries and the exploration of our universe.

Conclusion

So this wraps up my 4th article for the week. I decided to touch on the topic of Mathematics in this article, as I frequently notice that many of my friends dislike Mathematics for its complexity and tediousness. Mathematics, of course, can be complex and tedious at times. However, it has so many uses and its benefits for the human race are simply astronomical. I hope that this article, albeit quite short, convinces you of the importance and usefulness of Mathematics, and I hope that this will spur you to enjoy it. If you did enjoy this article, do consider giving it a like. Do follow me and subscribe to my newsletter if you haven’t done so. Stay tuned for my next article!