Page 125 - Trackpad_V1_Book 6_Flipbook
P. 125
MORE PROGRAMS
Program 1. Write a program to print your name, roll number and school name.
Program 2. Write a program to add two numbers.
Program 3. Write a program to calculate the average marks of three subjects.
Hashtag
#Python: Object-oriented high-level programming language
#IDLE: Stands for Integrated Development and Learning Environment
REVISIT
▶ Python is a general purpose, high-level language with interactive features.
▶ Interactive Mode and Script Mode are the two working mode in Python.
▶ The input() function takes the user’s input while a program executes.
▶ The print() function is used to display the content on the screen
▶ Variables are memory reference points where we store values which can be accessed or changed later.
▶ A data type specifies the type of value a variable can contain.
▶ Comments enable us to understand the way a program works.
▶ Operators are special symbols which perform computation.
Introduction to Python 123

