SlideShare a Scribd company logo
Object Oriented Programming
Networking
Linux/Unix
Object Oriented Programming
(OOP)
In Python, a class is a template for a data type. A
class can be defined using the class keyword.
We define a class in a very similar way to how we
define a function. Just like a function, we use
parentheses and a colon after the class name (():)
when we define a class. Similarly, the body of our
class is indented like a function's body is.
Python Class
This is function
This is class
In Python, a class needs to be instantiated before use.
As an analogy, a class can be thought of as a blueprint (Car), and an instance
is an actual implementation of the blueprint (Ferrari).
Instantiate Python Class
In Python, class variables are defined outside of all methods and have the
same value for every instance of the class.
Class variables are accessed with the instance.variable or
class_name.variable syntaxes.
Python Class Variables
In Python, methods are functions that
are defined as part of a class. It is
common practice that the first
argument of any method that is part of
a class is the actual object calling the
method. This argument is usually called
self.
Python class methods
In Python, the .__init__() method is
used to initialize a newly created
object. It is called every time the
class is instantiated.
Python init method
Python Inheritance
Subclassing in Python, also known as
“inheritance”, allows classes to share
the same attributes and methods from
a parent or superclass. Inheritance in
Python can be accomplished by
putting the superclass name between
parentheses after the subclass or child
class name.
In the example code block, the Dog
class subclasses the Animal class,
inheriting all of its attributes.
Overriding in Python
In Python, inheritance allows for method
overriding, which lets a child class
change and redefine the implementation
of methods already defined in its parent
class.
The following example code block
creates a ParentClass and a ChildClass
which both define a print_test() method.
As the ChildClass inherits from the
ParentClass, the method print_test() will
be overridden by ChildClasssuch that it
prints the word “Child” instead of
“Parent”.
Super() Function in Python Inheritance
Python’s super() function allows a subclass to invoke its parent’s version of an
overridden method.
Networking
Why Networking?
As a Data Engineer, even though it is not required to
understand networking in detail, but it is necessary to
understand at least the surface topic of networking as it
will help data engineer to understand how the data
used every day transferred and connected
One communication flow consist of:
1. Sent request
2. Get response
Type of Network
LAN: Local Area Network, network in one area
MAN: Metropolitan Area Network, network in a city, consist of several LAN
WAN: Wide Area Network, consist of several MAN
Data Engineer Focus
Understanding LAN
Understanding how LAN works
Understanding troubleshooting LAN
Important Terminology
DNS: Technology that translate an IP Address into
an easy remember name. For example IP 23.345.23
into google.com
VPN: Enable us to create a direct connection, so we
establish a more secure connection. Best practice is
that we should use VPN whenever we are going to
access data.
Information needed when connect to database
IP Address / IP host
Port
Username
Password
VPN Account
Shell Command
print Working Directory
The shell command pwd displays the file path from the root directory to the
current working directory.
mkdir Make Directory
ls List
The shell command ls is used to list the contents of a directory
The shell command cd is used to move
throughout the filesystem of a computer. It
accepts a variety of arguments:
Full file paths.
Names of children of the current directory.
.. the parent of the current directory.
cd Change Directory
touch Create New File
The shell command touch creates a new file in the current
working directory with the name provided.
cp Copy
cp is used to copy files or directories.
The basic argument structure is cp source destination, where the source is the
file/directory to copy to the destination file/directory.
mv Move
mv is used to move a file into a directory.
Syntax:
Mv (file to be moved) (target directory)
rm Remove
rm is used to delete files and directories. The -r flag deletes a directory
and all of its files and directories (rm -r).
ls List Command Options
The shell command ls is used to list the contents in a directory. It can be
combined with the following command options:
-a: lists all contents, including hidden files and directories.
-l: lists all contents, in long format.
-t: lists all contents, by the time they were last modified.
cat Display
cat displays the contents of one or more files to the terminal.
grep Search
grep is used to search files for lines that match a pattern and returns
the results. Various options can be specified along with the grep
command to specify the search.
The | command is called a pipe. It is used to pipe, or transfer, the standard
output from the command on its left into the standard input of the
command on its right.
Pipe shell command
PIPELINE TEAM
Ines Desdemarsa
Novita Sari

More Related Content

PPTX
File handling in Python
PPTX
Functions in python
PPTX
Chapter 08 data file handling
PDF
Python File Handling | File Operations in Python | Learn python programming |...
PDF
WEB PROGRAMMING UNIT VI BY BHAVSINGH MALOTH
PDF
Python programming : Files
PPT
web programming Unit VI PPT by Bhavsingh Maloth
PPTX
9 Inputs & Outputs
File handling in Python
Functions in python
Chapter 08 data file handling
Python File Handling | File Operations in Python | Learn python programming |...
WEB PROGRAMMING UNIT VI BY BHAVSINGH MALOTH
Python programming : Files
web programming Unit VI PPT by Bhavsingh Maloth
9 Inputs & Outputs

What's hot (20)

PDF
File and directories in python
PDF
Python - Lecture 8
DOCX
Python Interview Questions For Experienced
PPTX
Chapter 5 - THREADING & REGULAR exp - MAULIK BORSANIYA
PDF
PPTX
Git, Docker, Python Package and Module
PDF
Python-files
DOCX
Notes on c++
PPTX
Data file handling in python reading & writing methods
PDF
Python - File operations & Data parsing
PPTX
Python Session - 2
DOCX
Python Interview Questions For Freshers
PDF
Python-File handling-slides-pkt
PPTX
Tibco ems admin commands
PPTX
PPTX
SWT Lecture Session 8 - Inference in jena
PPTX
DOCX
python file handling
PPTX
File Commands - R.D.Sivakumar
PPT
File handling(some slides only)
File and directories in python
Python - Lecture 8
Python Interview Questions For Experienced
Chapter 5 - THREADING & REGULAR exp - MAULIK BORSANIYA
Git, Docker, Python Package and Module
Python-files
Notes on c++
Data file handling in python reading & writing methods
Python - File operations & Data parsing
Python Session - 2
Python Interview Questions For Freshers
Python-File handling-slides-pkt
Tibco ems admin commands
SWT Lecture Session 8 - Inference in jena
python file handling
File Commands - R.D.Sivakumar
File handling(some slides only)
Ad

Similar to OOP, Networking, Linux/Unix (20)

PPTX
PYTHON OBJECT-ORIENTED PROGRAMMING.pptx
PPTX
Object Oriented Programming.pptx
PDF
Master of computer application python programming unit 3.pdf
PDF
Python unit 3 m.sc cs
PPT
Python3
PDF
Python's dynamic nature (rough slides, November 2004)
PPT
Lesson on Python Classes by Matt Wufus 2003
ODP
Programming Under Linux In Python
PDF
Python for katana
PDF
python note.pdf
PDF
Customise Odoo addons modules
PPT
Introduction to Python - Part Three
PPTX
Presentation of Python, Django, DockerStack
PDF
Intermediate python
PPTX
Python programming computer science and engineering
PPTX
Python advance
PPT
Python ppt
PPTX
Learn Python The Hard Way Presentation
PPTX
Python Programming 1.pptx
ODP
An Intro to Python in 30 minutes
PYTHON OBJECT-ORIENTED PROGRAMMING.pptx
Object Oriented Programming.pptx
Master of computer application python programming unit 3.pdf
Python unit 3 m.sc cs
Python3
Python's dynamic nature (rough slides, November 2004)
Lesson on Python Classes by Matt Wufus 2003
Programming Under Linux In Python
Python for katana
python note.pdf
Customise Odoo addons modules
Introduction to Python - Part Three
Presentation of Python, Django, DockerStack
Intermediate python
Python programming computer science and engineering
Python advance
Python ppt
Learn Python The Hard Way Presentation
Python Programming 1.pptx
An Intro to Python in 30 minutes
Ad

More from Novita Sari (12)

PPTX
Advanced python
PDF
Summary python coding
PDF
Summary machine learning and model deployment
PDF
Summary legal
PDF
Summary introduction to data engineering
PDF
Summary data visualization
PDF
Summary data modelling
PDF
Summary business knowledge for data professional
PDF
Practice case legal for data professional
PDF
Big data tools
PDF
Python Function and Looping
PDF
Basic Data Engineering
Advanced python
Summary python coding
Summary machine learning and model deployment
Summary legal
Summary introduction to data engineering
Summary data visualization
Summary data modelling
Summary business knowledge for data professional
Practice case legal for data professional
Big data tools
Python Function and Looping
Basic Data Engineering

Recently uploaded (20)

PDF
Clinical guidelines as a resource for EBP(1).pdf
PDF
Foundation of Data Science unit number two notes
PPTX
Business Acumen Training GuidePresentation.pptx
PPTX
Introduction to Knowledge Engineering Part 1
PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
PDF
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
PPTX
climate analysis of Dhaka ,Banglades.pptx
PDF
Business Analytics and business intelligence.pdf
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PPTX
Computer network topology notes for revision
PDF
Fluorescence-microscope_Botany_detailed content
PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PPTX
Qualitative Qantitative and Mixed Methods.pptx
PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PPTX
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
PDF
.pdf is not working space design for the following data for the following dat...
PDF
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
PPT
Reliability_Chapter_ presentation 1221.5784
PPTX
Database Infoormation System (DBIS).pptx
Clinical guidelines as a resource for EBP(1).pdf
Foundation of Data Science unit number two notes
Business Acumen Training GuidePresentation.pptx
Introduction to Knowledge Engineering Part 1
Data_Analytics_and_PowerBI_Presentation.pptx
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
climate analysis of Dhaka ,Banglades.pptx
Business Analytics and business intelligence.pdf
oil_refinery_comprehensive_20250804084928 (1).pptx
Computer network topology notes for revision
Fluorescence-microscope_Botany_detailed content
STUDY DESIGN details- Lt Col Maksud (21).pptx
Galatica Smart Energy Infrastructure Startup Pitch Deck
Qualitative Qantitative and Mixed Methods.pptx
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
.pdf is not working space design for the following data for the following dat...
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
Reliability_Chapter_ presentation 1221.5784
Database Infoormation System (DBIS).pptx

OOP, Networking, Linux/Unix

  • 3. In Python, a class is a template for a data type. A class can be defined using the class keyword. We define a class in a very similar way to how we define a function. Just like a function, we use parentheses and a colon after the class name (():) when we define a class. Similarly, the body of our class is indented like a function's body is. Python Class This is function This is class
  • 4. In Python, a class needs to be instantiated before use. As an analogy, a class can be thought of as a blueprint (Car), and an instance is an actual implementation of the blueprint (Ferrari). Instantiate Python Class
  • 5. In Python, class variables are defined outside of all methods and have the same value for every instance of the class. Class variables are accessed with the instance.variable or class_name.variable syntaxes. Python Class Variables
  • 6. In Python, methods are functions that are defined as part of a class. It is common practice that the first argument of any method that is part of a class is the actual object calling the method. This argument is usually called self. Python class methods
  • 7. In Python, the .__init__() method is used to initialize a newly created object. It is called every time the class is instantiated. Python init method
  • 8. Python Inheritance Subclassing in Python, also known as “inheritance”, allows classes to share the same attributes and methods from a parent or superclass. Inheritance in Python can be accomplished by putting the superclass name between parentheses after the subclass or child class name. In the example code block, the Dog class subclasses the Animal class, inheriting all of its attributes.
  • 9. Overriding in Python In Python, inheritance allows for method overriding, which lets a child class change and redefine the implementation of methods already defined in its parent class. The following example code block creates a ParentClass and a ChildClass which both define a print_test() method. As the ChildClass inherits from the ParentClass, the method print_test() will be overridden by ChildClasssuch that it prints the word “Child” instead of “Parent”.
  • 10. Super() Function in Python Inheritance Python’s super() function allows a subclass to invoke its parent’s version of an overridden method.
  • 12. Why Networking? As a Data Engineer, even though it is not required to understand networking in detail, but it is necessary to understand at least the surface topic of networking as it will help data engineer to understand how the data used every day transferred and connected One communication flow consist of: 1. Sent request 2. Get response
  • 13. Type of Network LAN: Local Area Network, network in one area MAN: Metropolitan Area Network, network in a city, consist of several LAN WAN: Wide Area Network, consist of several MAN Data Engineer Focus Understanding LAN Understanding how LAN works Understanding troubleshooting LAN
  • 14. Important Terminology DNS: Technology that translate an IP Address into an easy remember name. For example IP 23.345.23 into google.com VPN: Enable us to create a direct connection, so we establish a more secure connection. Best practice is that we should use VPN whenever we are going to access data. Information needed when connect to database IP Address / IP host Port Username Password VPN Account
  • 16. print Working Directory The shell command pwd displays the file path from the root directory to the current working directory. mkdir Make Directory
  • 17. ls List The shell command ls is used to list the contents of a directory The shell command cd is used to move throughout the filesystem of a computer. It accepts a variety of arguments: Full file paths. Names of children of the current directory. .. the parent of the current directory. cd Change Directory
  • 18. touch Create New File The shell command touch creates a new file in the current working directory with the name provided.
  • 19. cp Copy cp is used to copy files or directories. The basic argument structure is cp source destination, where the source is the file/directory to copy to the destination file/directory.
  • 20. mv Move mv is used to move a file into a directory. Syntax: Mv (file to be moved) (target directory)
  • 21. rm Remove rm is used to delete files and directories. The -r flag deletes a directory and all of its files and directories (rm -r).
  • 22. ls List Command Options The shell command ls is used to list the contents in a directory. It can be combined with the following command options: -a: lists all contents, including hidden files and directories. -l: lists all contents, in long format. -t: lists all contents, by the time they were last modified.
  • 23. cat Display cat displays the contents of one or more files to the terminal.
  • 24. grep Search grep is used to search files for lines that match a pattern and returns the results. Various options can be specified along with the grep command to specify the search.
  • 25. The | command is called a pipe. It is used to pipe, or transfer, the standard output from the command on its left into the standard input of the command on its right. Pipe shell command