Introduction to Data Science: Assignment 1 (Twitter Sentiment Analysis in Python)

This is a fun assignment, as we get to deal with real data: twitter’s live stream, that is real-time tweets on twitter.com.This is done by accessing the twitter Application Programming Interface(API) using python. This assignment requires some python programming knowledge. Get Twitter live stream data First, we have to get the data from twitter to … Continue reading Introduction to Data Science: Assignment 1 (Twitter Sentiment Analysis in Python)

Google Codejam Qualification Round 2014

This is the first time I participate in Google Code Jam. Google Code Jam is a programming competition organized by Google annually to identify potential talents to work at Google. The competition starts with a qualification round, followed by Round 1, Round 2, Round 3, and Onsite Finals, each at different date. So far, I … Continue reading Google Codejam Qualification Round 2014

6.00.1x Week 3 (Problem Set)

There are two problems in this week’s problem set, one requires us to calculate the radiation exposure, another one requires us to program a hangman game. Radiation exposure Radioactive substance will undergo radioactive decay and emit radiation, over time, the amount of radioactive substance will reduce. The time required for a radioactive substance to reduce … Continue reading 6.00.1x Week 3 (Problem Set)

6.00.1x Week 3

This week, we learnt about recursion and different compound data types. Recursion Recursion means repeating similar version of something. In programming, a recursion function is a function that calls a smaller version of itself. It is useful for problems that can be represented as smaller version of themselves. The concept of recursion can be condensed … Continue reading 6.00.1x Week 3

6.00.1x Week 2 (Problem Set)

This week’s problem set deals with programming scripts that show what is the minimum amount of money a student has to pay in order to pay off his credit card balance in one year. There are 12 months in a year, and each month, interest will be incurred on the balance, the updated balance after … Continue reading 6.00.1x Week 2 (Problem Set)

6.00.1x Week 2

In week 2, I learnt to write functions in Python. The format of function in Python is as follows:

whereas in C, it is written as:

To program a basic function such as function to find the square root of a number, there are many approaches. We can use: 1. Linear search (exhaustive … Continue reading 6.00.1x Week 2

Starting MITx 6.00.1x Introduction to Computer Science and Programming Using Python 2014

I started another OpenCourseWare (free online course), MITx: 6.00.1x Introduction to Computer Science and Programming Using Python, provided by MIT and hosted on edX. I am currently also learning C with CS50x. When I was trying out the Project Euler questions, I realised that C cannot compute very large numbers, while Python can do it … Continue reading Starting MITx 6.00.1x Introduction to Computer Science and Programming Using Python 2014

Solving programming problems of ProjectEuler.net using Python

I found an interesting website called ProjectEuler.net, where they have 460 programming challenges to be solved (click on Problems). As the ID of the challenge increases, the number of people that are able to solve it decreases. You have to register if you want to keep track of your progress. After you successfully attempt a … Continue reading Solving programming problems of ProjectEuler.net using Python