Page 431 - ComputerScience_Class_11
P. 431
Program 6: To demonstrate variables in Python.
Program 6.py
File Edit Format Run Options Window Help
name = "Rahul" # String variable
age = 15 # Integer variable
print("Name:", name)
print("Age:", age)
age = 16 # Value updated
print("Updated Age:", age)
Output
Name: Rahul
Age: 15
Updated Age: 16
Let’s Revisit
♦ Python is a high-level and general-purpose programming language which simplifies the process of developing a program.
♦ An Integrated Development Environment, commonly known as an IDE, is a software application that brings together all the
essential tools required for software development.
♦ Integrated Development Learning Environment (IDLE) is the default IDE that comes automatically when Python is installed on
a computer.
♦ Spyder is an open-source IDE mainly used for scientific computing and data analysis.
♦ Python is a portable programming language. This means a Python program written on one operating system can run on other
operating systems without changing the code.
♦ An identifier is the name given to a variable, function, class, object or any other element in a Python program.
♦ In Python, variables are names that act as containers for storing data or values in a program.
♦ A multi-line comment in Python is used to explain multiple lines of code or to write a detailed description of a program.
Installation & IDE and Fundamentals of Python Programming 429

