SlideShare a Scribd company logo
2
Most read
5
Most read
11
Most read
Python IDLE Introduction
LectureNo2
FahadAshrafi
Fahad
Ashrafi
IDLE
An interpreter is a program that reads and executes codes. Python is a
great example of an
interpreter
Fahad
Ashrafi
print("Hello World")
What Happened Here
Fahad
Ashrafi
Python Basic Syntax
In order for the Python interpreter to process and execute
your instructions properly, you
must write your code in the format that it can understand.
In programming, syntax refers
to the set of rules that define the correct form,
combination, and sequence of words and
symbols
Fahad
Ashrafi
WHY, Its Case Sensitive
Fahad
Ashrafi
Key Words
• PLEASE NOTE
• All the keywords except True, False and None are in lowercase
and they must be
• written as it is.
• Keyword are case sensitive.
• Example : is print, for, in,
Fahad
Ashrafi
Python’s Identifiers
An identifier is a name given to a variable, class, function, string, list,
dictionary, module, and other objects. In python, it helps differentiating one
entity from another.
Fahad
Ashrafi
Using Quotation Marks
Quotation marks are used to indicate string literals. You can use single (΄), double
(“), or triple (”’) quotes but you must observe consistency by using the same
quotation marks to begin and end the string.
Examples:
‘Fahad’
“Karachi”
”‘age:”’
Fahad
Ashrafi
Statements
Statements are expressions that you write within a program which are, in turn,
read and executed by the Python interpreter. Python supports statements such
as if statement, for statement, while statement, break statement, and
assignment statements.
Fahad
Ashrafi
Variables
A variable is a reserved memory location that can be used to store values.
This means that when you create a variable you reserve some space in the
memory.
Fahad
Ashrafi
Memory Location
To check the memory location of the above variables, you’ll use the id() operator.
But first, open you IDLE and type the variables and their values showed above.
Figure 7. Here are the variable assignments statements.
Now you can type these assignments:
>>>id(employee)
>>>id(score)
>>>id(counter)
>>>id(comment)
Once you
Fahad
Ashrafi

More Related Content

PPTX
Strings in Java
PPTX
class and objects
PPSX
Exception Handling
PPTX
Values and Data types in python
PPT
File handling in c
PPT
PYTHON - TKINTER - GUI - PART 1.ppt
PDF
Introduction to Python IDLE | IDLE Tutorial | Edureka
PPTX
Tokens in C++
Strings in Java
class and objects
Exception Handling
Values and Data types in python
File handling in c
PYTHON - TKINTER - GUI - PART 1.ppt
Introduction to Python IDLE | IDLE Tutorial | Edureka
Tokens in C++

What's hot (20)

PPT
CSharp.ppt
PPTX
Function in C program
PPT
File handling in C++
PDF
Object-oriented Programming-with C#
PDF
Python programming : Files
PDF
Datatypes in python
PPT
Java static keyword
PPTX
Presentation on-exception-handling
PPTX
PDF
Python introduction
PPTX
Pointer in c
PPTX
Access specifiers(modifiers) in java
PPTX
Java package
PDF
Character Array and String
PPTX
Interface in java
PDF
Difference between c, c++ and java
PDF
Python functions
PPTX
Benefits & features of python |Advantages & disadvantages of python
PPT
Scanner class
CSharp.ppt
Function in C program
File handling in C++
Object-oriented Programming-with C#
Python programming : Files
Datatypes in python
Java static keyword
Presentation on-exception-handling
Python introduction
Pointer in c
Access specifiers(modifiers) in java
Java package
Character Array and String
Interface in java
Difference between c, c++ and java
Python functions
Benefits & features of python |Advantages & disadvantages of python
Scanner class
Ad

Similar to Python idle introduction(3) (20)

PDF
kecs105.pdf
PPT
Introduction to Python Lesson One-Python Easy Learning
PPT
program on python what is python where it was started by whom started
PPT
Python Over View (Python for mobile app Devt)1.ppt
PPT
Py-Slides-1.ppt1234444444444444444444444444444444444444444
PPT
Python slides for the beginners to learn
PPT
Py-Slides-1.pptPy-Slides-1.pptPy-Slides-1.pptPy-Slides-1.ppt
PPTX
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
PPTX
PYTHON_VARIABLES_AND_OPERATORS(2022) CSD.pptx
PDF
PYTHON PROGRAMMING NOTES RKREDDY.pdf
PPTX
Python Programming | JNTUK | UNIT 1 | Lecture 3
PPTX
chapter_5_ppt_em_220247.pptx
PPTX
Vks python
PPT
Python - Introduction
PPT
Python Programming Language
PDF
Learnpython 151027174258-lva1-app6892
PDF
Python: Strings & Intro Programming PDFs
PDF
Python Programing Bio computing,basic concepts lab,,
PPTX
Beginning Python Programming
PDF
Py-Slides- easuajsjsjejejjwlqpqpqpp1.pdf
kecs105.pdf
Introduction to Python Lesson One-Python Easy Learning
program on python what is python where it was started by whom started
Python Over View (Python for mobile app Devt)1.ppt
Py-Slides-1.ppt1234444444444444444444444444444444444444444
Python slides for the beginners to learn
Py-Slides-1.pptPy-Slides-1.pptPy-Slides-1.pptPy-Slides-1.ppt
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
PYTHON_VARIABLES_AND_OPERATORS(2022) CSD.pptx
PYTHON PROGRAMMING NOTES RKREDDY.pdf
Python Programming | JNTUK | UNIT 1 | Lecture 3
chapter_5_ppt_em_220247.pptx
Vks python
Python - Introduction
Python Programming Language
Learnpython 151027174258-lva1-app6892
Python: Strings & Intro Programming PDFs
Python Programing Bio computing,basic concepts lab,,
Beginning Python Programming
Py-Slides- easuajsjsjejejjwlqpqpqpp1.pdf
Ad

Recently uploaded (20)

PPTX
Cell Types and Its function , kingdom of life
PDF
Basic Mud Logging Guide for educational purpose
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
Institutional Correction lecture only . . .
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Complications of Minimal Access Surgery at WLH
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Lesson notes of climatology university.
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Cell Structure & Organelles in detailed.
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
VCE English Exam - Section C Student Revision Booklet
Cell Types and Its function , kingdom of life
Basic Mud Logging Guide for educational purpose
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Institutional Correction lecture only . . .
Microbial disease of the cardiovascular and lymphatic systems
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Complications of Minimal Access Surgery at WLH
GDM (1) (1).pptx small presentation for students
Lesson notes of climatology university.
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
2.FourierTransform-ShortQuestionswithAnswers.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Pharma ospi slides which help in ospi learning
Anesthesia in Laparoscopic Surgery in India
Computing-Curriculum for Schools in Ghana
Cell Structure & Organelles in detailed.
Final Presentation General Medicine 03-08-2024.pptx
VCE English Exam - Section C Student Revision Booklet

Python idle introduction(3)

  • 2. IDLE An interpreter is a program that reads and executes codes. Python is a great example of an interpreter Fahad Ashrafi
  • 4. Python Basic Syntax In order for the Python interpreter to process and execute your instructions properly, you must write your code in the format that it can understand. In programming, syntax refers to the set of rules that define the correct form, combination, and sequence of words and symbols Fahad Ashrafi
  • 5. WHY, Its Case Sensitive Fahad Ashrafi
  • 6. Key Words • PLEASE NOTE • All the keywords except True, False and None are in lowercase and they must be • written as it is. • Keyword are case sensitive. • Example : is print, for, in, Fahad Ashrafi
  • 7. Python’s Identifiers An identifier is a name given to a variable, class, function, string, list, dictionary, module, and other objects. In python, it helps differentiating one entity from another. Fahad Ashrafi
  • 8. Using Quotation Marks Quotation marks are used to indicate string literals. You can use single (΄), double (“), or triple (”’) quotes but you must observe consistency by using the same quotation marks to begin and end the string. Examples: ‘Fahad’ “Karachi” ”‘age:”’ Fahad Ashrafi
  • 9. Statements Statements are expressions that you write within a program which are, in turn, read and executed by the Python interpreter. Python supports statements such as if statement, for statement, while statement, break statement, and assignment statements. Fahad Ashrafi
  • 10. Variables A variable is a reserved memory location that can be used to store values. This means that when you create a variable you reserve some space in the memory. Fahad Ashrafi
  • 11. Memory Location To check the memory location of the above variables, you’ll use the id() operator. But first, open you IDLE and type the variables and their values showed above. Figure 7. Here are the variable assignments statements. Now you can type these assignments: >>>id(employee) >>>id(score) >>>id(counter) >>>id(comment) Once you Fahad Ashrafi