A+ Blog STD 9 It Chapter 4 Programming PDF Note 1 (Em)
A+ Blog STD 9 It Chapter 4 Programming PDF Note 1 (Em)
Chapter – 4
PROGRAMMING
Software
Software is set of instructions, data or programs use to operate computers and execute specific
tasks.
Programs
Programming languages
Q: How does the computer under stand the programming language instructions.
The computer understands the instructions in the programming languages with the help of a
translator.
Translator: Translator programs are used to convert the programming language to binary
language and to convert the instructions in binary language to the programming language.
In each programming language there will be a translator program suitable for its instructions.
This program will take care of converting the instructions to the machine language.
This translator program should be given only those instructions that can be converted into machine
language.
These instructions and the respective translator program will be different for each programming
language.
Activity
Save
Type: python3 first.py and Press Enter
Python
Print statement
Variables: Variables can be used to collect data. Variables can be included using either words or
letters. Numbers and strings can be taken as values for variables
Strings
If the variables l (length) is considered as length and the variable b (breadth) is considered as breadth.
80
60
The value for length (l) is given and breadth (b) should be given.
The python instruction that given for this is eval(input)
File Save
Run Run module
Enter the value of length and breadth and press enter key
File extension
Prepared by:
Ramshitha A.V
Malabar HSS Alathiyur
Tirur, Malappuram