Professional Documents
Culture Documents
Fundamentals of Programming
3
DAIT
Lesson 4 - DK 4
Lesson 4 – Representingthe Real World
in the Computer
Software Objects
Identifiers in Programming
5
Learning Outcomes
8
Real World Objects
9
Objects
Data that
An object has: describes the
object.
10
Representing Real World Objects
in a Computer
Real World Objects are represented as
Software Objects in the computer's
memory.
Animal : Rabbit
Color: White
Legs: 4
1. Package
2. Module "Code is
3. Variable read much
more often
4. Function/Method than it is
5. Class written."
- Guido van Rossum
6. Constant
13
Identifiers in Programming
Identifier => a name given to any element in a program.
Harry
16
QUIZ
Q1. Which one of the following is a keyword in Python?
a) fail
b) pass
c) True
d) int
a) loc()
b) obj()
c) id()
d) ref()
17
QUIZ
Q3. What is the maximum length recommended for an identifier in
Python?
a) 79
b) 31
c) 8
d) Depends on the Operating System
a) an object
b) a function
c) an identifier
d) a class
18
QUIZ
Q5. Which of the following is not an implementation of Python?
a) CPython
b) PyPy
c) Jython
d) .NET
19
End of Lesson 4
20