Click to edit Master title style
Introduction
to Python
1
Click to edit Master title style
BIG QUESTION
Why is it important to learn
coding/programming?
2 2
PRE-ASSESSMENT
Click to edit Master title style
1.SCRATCH IS A BLOCK-BASED PROGRAMMING LANGUAGE. EACH
BLOCK STANDS FOR A
A) LANGUAGE B ) COMMAND C) INSTRUCTIONS
2. PYTHON IS A WIDELY USED PROGRAMMING LANGUAGE FOR
CREATING WEBSITES AND APPLICATIONS
TRUE OR FALSE
3. PYTHON WAS NAMED AFTER THE BRITISH COMEDY GROUP
MONTY PYTHON, NOT THE SNAKE
TRUE OR FALSE 3 3
PRE-ASSESSMENT
Click to edit Master title style
1.SCRATCH IS A BLOCK-BASED PROGRAMMING LANGUAGE. EACH
BLOCK STANDS FOR A
A) LANGUAGE B ) COMMAND C) INSTRUCTIONS
2. PYTHON IS A WIDELY USED PROGRAMMING LANGUAGE FOR
CREATING WEBSITES AND APPLICATIONS
TRUE OR FALSE
3. PYTHON WAS NAMED AFTER THE BRITISH COMEDY GROUP
MONTY PYTHON, NOT THE SNAKE
TRUE OR FALSE
4 4
Click to edit
LEARNING Master title style
OBJECTIVES
• To learn the basics of Python
programming language
• To execute simple print statements
using python.
• To create a variable for storing data SUCCESS
values. CRITERIA
• Familiarise the coding platform
• Use print statements to generate
your personal details
• Identify variables and values.
5 5
Click to edit Master title style
STARTER
6 6
Click to edit
FEATURES OFMaster
PYTHONtitle style
7 7
Click to edit
Content TitleMaster
03 title style
SYNTAX
The Python syntax defines all the set of rules that
are used to create sentences in Python
programming.
For example – We must learn grammar to learn
the English language. In the same way, you will
need to learn and understand the Python syntax in
order to learn the Python language.
8
HOW TO INSTALL PYTHON?
Click to edit Master title style
https://www.python.org
/downloads/
https://www.online-pyt
hon.com/
9 9
Click to edit TASK
INDIVIDUAL Master title style
USE PRINT STATEMENTS AND ANALYSE THE
DIFFERENCE IN OUTPUTS
print("Hello")
What will happen if
print("Hello") you give the
print("World") statement as
print(Hello) without
print("Hello") quotations?
print("\n")
print("World")
10
10
Click to edit Master title style
Variable
Variables are entities of a
program that holds a value.
Here is an example of a
variable:
X=100
X is a variable that stores a
value 100 in it.
11
11
Click to edit Master title style
“
REFLECTION
Identify the error from the code
snippet given below:
Print(num1)
12
12
Click
TASK to edit Master title style
Create 2 variables num1 Create 2 variables num1 Create 2 variables num1
and num2 with values 5 and num2 with values 5 and num2 with values 5
and 10 in it respectively. and 10 in it respectively. and 10 in it respectively.
Make a new variable total
Display the values of which sums up num1 and
num1 and num2 using num2
print statements
Display the values of
num1, num2 and total
using print statements
13
13
Click to edit Master title style
PLENARY
Would this line
be printed in one
line or multiple
print(“I”) lines?
print(“can”)
print(“understand ”)
print(“the working”)
print(“of print statements”)
14