Posts

Showing posts from June, 2018

List vs Dictionary vs Tuple

Tuples, Lists, and Dictionaries Introduction Let's think about variables - variables store one bit of information. They may regurgitate (just not on the carpet...) that information at any point, and their bit of information can be changed at any time. Variables are great at what they do - storing a piece of information that may change over time. But what if you need to store a long list of information, which doesn't change over time? Say, for example, the names of the months of the year. Or maybe a long list of information, that does change over time? Say, for example, the names of all your cats. You might get new cats, some may die, some may become your dinner (we should trade recipies!). What about a phone book? For that you need to do a bit of referencing - you would have a list of names, and attached to each of those names, a phone number. How would you do that? The Solution - Lists, Tuples, and Dictionaries For these three problems, Python uses three different ...

"Python For Beginners"

Image
PYTHON FOR BEGINNERS Python  is an object-oriented language, which means that it can model real-world objects. It is also dynamically-typed because it carries out type-checking at runtime. It does so to make sure that the type of a construct matches what we expect in that context. The distinctive feature about Python is that it is an interpreted language. The Python  IDLE  (Integrated Development Environment) executes instructions a line at a time. Etymology states that Guido van Rossum named it after the comedy group Monty Python. That is why the metasyntactic variables used here are ‘spam’ and ‘eggs’ instead of ‘foo’ and ‘bar’. Unlike as expected, it does not refer to the reptile species. A lot of implementations today run version 2.x, but the future belongs to Python 3.x. It is also called ‘Python 3000’ or ‘Py3K’. CPython, written in C, is the most common implementation of Python. It compiles a Python program into intermediate bytecode. A...

Introduction to IOT

Image
INTRODUCTION TO INTERNET OF THINGS       Imagine that things around you begin to talk to you and start providing information in a smarter way. How would you feel if your alarm clock, knows your office location and path, know traffic conditions and is learned enough to create an estimate of your arrival time and wake you up accordingly? No traffic on road, you can enjoy some more sleep. Wouldn't it be great if your umbrella updates you about the weather by beeping and tell you to carry it? Wouldn't you like to have hot coffee while you are on your way home just through an app? Wouldn't it be sweet if you could control all applications in your house remotely? Get security updates. Or maybe your Home can have a Facebook/Twitter Id where it will update its conditions like room temperature, electric consumptions or other things? Wouldn't it be cool to get updates about your office employees, if they start becoming peeping Toms? Well…. this is just the tip ...

"Introduction to Raspberry-Pi and Arduino and some basic sensors"

Image
What is an Arduino? Arduino is an open-source platform used for building electronics projects. Arduino consists of both a physical programmable circuit board (often referred to as a microcontroller) and a piece of software, or IDE (Integrated Development Environment) that runs on your computer, used to write and upload computer code to the physical board. The Arduino platform has become quite popular with people just starting out with electronics, and for good reason. The Arduino does not need a separate piece of hardware (called a programmer) in order to load new code onto the board – you can simply use a USB cable. Additionally, the Arduino IDE uses a simplified version of C++, making it easier to learn to program. Finally, Arduino provides a standard form factor that breaks out the functions of the micro-controller into a more accessible package. What Does it Do? The Arduino hardware and software was designed for artists, designers, hobbyists, hac...