Topic: Programming with Python
AITCHISON COLLEGE
Class: E2
PREP SCHOOL
ICT Department
Objectives
Students will be able to:
• Learn the concept of Programming Language
• Understand the Interface of Python
• Identify the use of print statement
• Apply print statement using examples
Python-Introduction
Python is a high-level, interpreted, interactive and object-oriented scripting
language .Python was released in 1991
Features of Python
Following are the key features of Python:
• Easy-to-learn − Python has few keywords, simple structure and a syntax.
• Easy-to-read − Python code is more clearly defined .
• Easy-to-maintain − It is easy to find errors and make changes in code.
• Supports GUI − Python has a support for Graphical User Interface
programming.
• Portable − Python can run on a variety of hardware platforms and has the
same interface on all platforms.
Python- IDLE
IDLE (Integrated Development and Learning Environment)
• IDLE can be used to execute a single statement and also to create, modify
and execute Python scripts.
• IDLE provides fully-featured text editor to create Python script.
Print Statement
• Print function is used to display output on the screen.
• Python print Syntax
– The general form to use print function in python is
– print("any character or string")
– print(“Hello World”)
– print(2+3)
– print(9/3)
– print(“2+3=”,2+3)
Question 1
Python is a :
a) Word processing software
b) Programming language
c) Accounting software
d) Video editor
Question 2
Which of the following function will be used to display output?
a) input()
b) output()
c) print()
d) All of the above
Question 3
IDLE stands for :
a) Integrated Development Environment
b) Internal Development Language Environment
c) Integrated Development Learning Environment
d) Integrated Development Local Environment
Question 4
The correct syntax of print function in python is:
a) print[“Welcome to python programming”]
b) print(“Welcome to python programming”)
c) print[“Welcome to python programming”]
d) print(Welcome to python programming)
Question 7
We use python for:
a) Software development
b) Web development
c) Game development
d) All of the above
Question 8
Python was released in :
a) 1995
b) 1981
c) 1991
d) 1980
Recap
In this lesson, we have discussed:
• Basics of Python
• Python IDLE( python shell and script)
• Use of Print statement
• Print string and numeric data
Thank You