Python Posts

CodeChef beginner practice problem: Life, the Universe, and Everything

If you are here or this has come up in your search for solutions, you probably are having difficulty solving one of the beginner problems on CodeChef.com and hence have decided to google an answer to your frustrating dilemma.

In this blog  I will try to provide an approach to solve the problem but it may not be the sole solution. There are many ways to solve it but I will cover only one method: a beginner’s method. Even though there are many examples you can dig from the pre-submitted answer in the answer page but none carry why, how of the coder thoughts and explanation.

I am only collecting beginner’s approach solutions into a blog so that you may be able to search the answer with an explanation as well.I will mainly focus on programming language Python as at present I am inclined towards it the  most among Python, Java, and C++.

Learner views – Python

IMG_20160719_112124In 21st century self-learning through online sources is the new mantra! Self-paced self-timed and self-designed learning works for everyone. I discovered this world during my 10th grade.

When it came to learning `What to learn’ in computer sciences there was coding gravitation towards Python because when I went to the learning online sources I tried my learning hand in C, C++, Java, HTML. C, C++ I had learnt earlier as well. However, Python overtook everything. I found Python very intuitive.

I learnt Python both from Codecademy as well as Coursera.