Posts

Data Types and Variables

Data Types String: string data types are a series of characters enclosed in single ( ' ) or double ( " ) quotes. Example: "Hello World!", "ABCD", "1234" Number: Numbers are whole numbers or numeric values. We also call them integers. Example: 123, 456, -1,-2,0 Float: Floats are decimal type numbers. Example: 1.2, 2.5, 3.14, -3.14 etc. Boolean: Booleans are also called Binary values. This datatype has only two values True and False. Value for True is 1 and Value for False is 0. Operators Operators are applied on values of different data types to change them. For example + (plus) operator can be used to add two numbers. Below are the common operators.  + - * / % // Behavior of an operator changes based on the datatypes. For example a plus operator is used to add two numeric values. 2 + 2 Output 4. However, a plus operator with string concatenates them. "abc" + "cdf" Output "abccdf".

Introduction

Introduction to Programming Main Parts of Computer: Computer is made of different parts. CPU CPU or Central Processing Unit is the brain of computer. It is very good at doing one work at a time and at a very fast speed.  RAM RAM or Random Access Memory is the memory of computer to store things it wants for some time. Devices You can connect different types of devices to Computer such as Monitor, Mouse, Keyboard, Printer, Speakers, Headphones etc. These devices can be of Input types such as Mouse, Keyboard, and Mics, or of Output types such as Monitor, Printer etc. Some devices can work as Input and Output both. For example modern multi-systems Purpose of Programming Purpose of programming is to control the input and output devices connected to computer. We will start with programming monitor as output device. Python Python is an easy to understand programming language for kids. You can get the latest version of Python from  https://www.python.org/downloads