Create a weather bot for Facebook messenger bot
When a user sends a message to a Facebook page that has bot feature setup, it is sent to the chatbot server by using webhooks. The chatbot server receives the message and It can do operations like … read more
Fizz buzz algorithm
Day 004 Problem statement: Fizz and Buzz refer to any number that’s a multiple of 3 and 5 respectively. In other words, if a number is divisible by 3, it is substituted with Fizz. if a number … read more
Timezone aware datetime in mongodb using pymongo
MongoDB stores dates in UTC timezone by default. This makes it possible to do timezone conversion to be done in both client side side or server side.
dependancies $ pip install pytz pymongo code from … read more
Even Fibonacci numbers
Today, I am going to solve Project Euler’s 2nd problem Even Fibonacci numbers.
Day 002 Problem statement:
Each new term in the Fibonacci sequence is generated by adding the previous two terms. … read more
Multiples of 3 and 5
Happy new year everyone! Hope you had a great holiday. As a new hope for this year I wanted to improve my problem solving ability and also to improve my programming skill. So I am doing 100 days of … read more