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

What's hot (20)

File and directories in python
File and directories in pythonFile and directories in python
File and directories in python
Lifna C.S
 
Python - Lecture 8
Python - Lecture 8Python - Lecture 8
Python - Lecture 8
Ravi Kiran Khareedi
 
Python Interview Questions For Experienced
Python Interview Questions For ExperiencedPython Interview Questions For Experienced
Python Interview Questions For Experienced
zynofustechnology
 
Chapter 5 - THREADING & REGULAR exp - MAULIK BORSANIYA
Chapter 5 - THREADING & REGULAR exp - MAULIK BORSANIYAChapter 5 - THREADING & REGULAR exp - MAULIK BORSANIYA
Chapter 5 - THREADING & REGULAR exp - MAULIK BORSANIYA
Maulik Borsaniya
 
File handling in Python
File handling in PythonFile handling in Python
File handling in Python
BMS Institute of Technology and Management
 
Git, Docker, Python Package and Module
Git, Docker, Python Package and ModuleGit, Docker, Python Package and Module
Git, Docker, Python Package and Module
Novita Sari
 
Python-files
Python-filesPython-files
Python-files
Krishna Nanda
 
Notes on c++
Notes on c++Notes on c++
Notes on c++
Selvam Edwin
 
Data file handling in python reading & writing methods
Data file handling in python reading & writing methodsData file handling in python reading & writing methods
Data file handling in python reading & writing methods
keeeerty
 
Python - File operations & Data parsing
Python - File operations & Data parsingPython - File operations & Data parsing
Python - File operations & Data parsing
Felix Z. Hoffmann
 
Python Session - 2
Python Session - 2Python Session - 2
Python Session - 2
AnirudhaGaikwad4
 
Python Interview Questions For Freshers
Python Interview Questions For FreshersPython Interview Questions For Freshers
Python Interview Questions For Freshers
zynofustechnology
 
Python-File handling-slides-pkt
Python-File handling-slides-pktPython-File handling-slides-pkt
Python-File handling-slides-pkt
Pradyumna Tripathy
 
Tibco ems admin commands
Tibco ems admin commandsTibco ems admin commands
Tibco ems admin commands
Cblsolutions.com
 
Java
JavaJava
Java
Dhruv Sabalpara
 
SWT Lecture Session 8 - Inference in jena
SWT Lecture Session 8 - Inference in jenaSWT Lecture Session 8 - Inference in jena
SWT Lecture Session 8 - Inference in jena
Mariano Rodriguez-Muro
 
SWT Lab 3
SWT Lab 3SWT Lab 3
SWT Lab 3
Mariano Rodriguez-Muro
 
python file handling
python file handlingpython file handling
python file handling
jhona2z
 
File Commands - R.D.Sivakumar
File Commands - R.D.SivakumarFile Commands - R.D.Sivakumar
File Commands - R.D.Sivakumar
Sivakumar R D .
 
File handling(some slides only)
File handling(some slides only)File handling(some slides only)
File handling(some slides only)
Kamlesh Nishad
 
File and directories in python
File and directories in pythonFile and directories in python
File and directories in python
Lifna C.S
 
Python Interview Questions For Experienced
Python Interview Questions For ExperiencedPython Interview Questions For Experienced
Python Interview Questions For Experienced
zynofustechnology
 
Chapter 5 - THREADING & REGULAR exp - MAULIK BORSANIYA
Chapter 5 - THREADING & REGULAR exp - MAULIK BORSANIYAChapter 5 - THREADING & REGULAR exp - MAULIK BORSANIYA
Chapter 5 - THREADING & REGULAR exp - MAULIK BORSANIYA
Maulik Borsaniya
 
Git, Docker, Python Package and Module
Git, Docker, Python Package and ModuleGit, Docker, Python Package and Module
Git, Docker, Python Package and Module
Novita Sari
 
Data file handling in python reading & writing methods
Data file handling in python reading & writing methodsData file handling in python reading & writing methods
Data file handling in python reading & writing methods
keeeerty
 
Python - File operations & Data parsing
Python - File operations & Data parsingPython - File operations & Data parsing
Python - File operations & Data parsing
Felix Z. Hoffmann
 
Python Interview Questions For Freshers
Python Interview Questions For FreshersPython Interview Questions For Freshers
Python Interview Questions For Freshers
zynofustechnology
 
Python-File handling-slides-pkt
Python-File handling-slides-pktPython-File handling-slides-pkt
Python-File handling-slides-pkt
Pradyumna Tripathy
 
SWT Lecture Session 8 - Inference in jena
SWT Lecture Session 8 - Inference in jenaSWT Lecture Session 8 - Inference in jena
SWT Lecture Session 8 - Inference in jena
Mariano Rodriguez-Muro
 
python file handling
python file handlingpython file handling
python file handling
jhona2z
 
File Commands - R.D.Sivakumar
File Commands - R.D.SivakumarFile Commands - R.D.Sivakumar
File Commands - R.D.Sivakumar
Sivakumar R D .
 
File handling(some slides only)
File handling(some slides only)File handling(some slides only)
File handling(some slides only)
Kamlesh Nishad
 

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

PYTHON OBJECT-ORIENTED PROGRAMMING.pptx
PYTHON  OBJECT-ORIENTED PROGRAMMING.pptxPYTHON  OBJECT-ORIENTED PROGRAMMING.pptx
PYTHON OBJECT-ORIENTED PROGRAMMING.pptx
hpearl130
 
Object Oriented Programming.pptx
Object Oriented Programming.pptxObject Oriented Programming.pptx
Object Oriented Programming.pptx
SAICHARANREDDYN
 
Master of computer application python programming unit 3.pdf
Master of computer application python programming unit 3.pdfMaster of computer application python programming unit 3.pdf
Master of computer application python programming unit 3.pdf
Krrai1
 
Python unit 3 m.sc cs
Python unit 3 m.sc csPython unit 3 m.sc cs
Python unit 3 m.sc cs
KALAISELVI P
 
Python3
Python3Python3
Python3
Ruchika Sinha
 
Python's dynamic nature (rough slides, November 2004)
Python's dynamic nature (rough slides, November 2004)Python's dynamic nature (rough slides, November 2004)
Python's dynamic nature (rough slides, November 2004)
Kiran Jonnalagadda
 
Lesson on Python Classes by Matt Wufus 2003
Lesson on Python Classes by Matt Wufus 2003Lesson on Python Classes by Matt Wufus 2003
Lesson on Python Classes by Matt Wufus 2003
davidlin271898
 
Programming Under Linux In Python
Programming Under Linux In PythonProgramming Under Linux In Python
Programming Under Linux In Python
Marwan Osman
 
Python for katana
Python for katanaPython for katana
Python for katana
kedar nath
 
python note.pdf
python note.pdfpython note.pdf
python note.pdf
Nagendra504676
 
Customise Odoo addons modules
Customise Odoo addons modulesCustomise Odoo addons modules
Customise Odoo addons modules
GLC Networks
 
Introduction to Python - Part Three
Introduction to Python - Part ThreeIntroduction to Python - Part Three
Introduction to Python - Part Three
amiable_indian
 
Presentation of Python, Django, DockerStack
Presentation of Python, Django, DockerStackPresentation of Python, Django, DockerStack
Presentation of Python, Django, DockerStack
David Sanchez
 
Intermediate python
Intermediate pythonIntermediate python
Intermediate python
NaphtaliOchonogor1
 
Python programming computer science and engineering
Python programming computer science and engineeringPython programming computer science and engineering
Python programming computer science and engineering
IRAH34
 
Python advance
Python advancePython advance
Python advance
Mukul Kirti Verma
 
Python ppt
Python pptPython ppt
Python ppt
Mohita Pandey
 
Learn Python The Hard Way Presentation
Learn Python The Hard Way PresentationLearn Python The Hard Way Presentation
Learn Python The Hard Way Presentation
Amira ElSharkawy
 
Python Programming 1.pptx
Python Programming 1.pptxPython Programming 1.pptx
Python Programming 1.pptx
Francis Densil Raj
 
An Intro to Python in 30 minutes
An Intro to Python in 30 minutesAn Intro to Python in 30 minutes
An Intro to Python in 30 minutes
Sumit Raj
 
PYTHON OBJECT-ORIENTED PROGRAMMING.pptx
PYTHON  OBJECT-ORIENTED PROGRAMMING.pptxPYTHON  OBJECT-ORIENTED PROGRAMMING.pptx
PYTHON OBJECT-ORIENTED PROGRAMMING.pptx
hpearl130
 
Object Oriented Programming.pptx
Object Oriented Programming.pptxObject Oriented Programming.pptx
Object Oriented Programming.pptx
SAICHARANREDDYN
 
Master of computer application python programming unit 3.pdf
Master of computer application python programming unit 3.pdfMaster of computer application python programming unit 3.pdf
Master of computer application python programming unit 3.pdf
Krrai1
 
Python unit 3 m.sc cs
Python unit 3 m.sc csPython unit 3 m.sc cs
Python unit 3 m.sc cs
KALAISELVI P
 
Python's dynamic nature (rough slides, November 2004)
Python's dynamic nature (rough slides, November 2004)Python's dynamic nature (rough slides, November 2004)
Python's dynamic nature (rough slides, November 2004)
Kiran Jonnalagadda
 
Lesson on Python Classes by Matt Wufus 2003
Lesson on Python Classes by Matt Wufus 2003Lesson on Python Classes by Matt Wufus 2003
Lesson on Python Classes by Matt Wufus 2003
davidlin271898
 
Programming Under Linux In Python
Programming Under Linux In PythonProgramming Under Linux In Python
Programming Under Linux In Python
Marwan Osman
 
Python for katana
Python for katanaPython for katana
Python for katana
kedar nath
 
Customise Odoo addons modules
Customise Odoo addons modulesCustomise Odoo addons modules
Customise Odoo addons modules
GLC Networks
 
Introduction to Python - Part Three
Introduction to Python - Part ThreeIntroduction to Python - Part Three
Introduction to Python - Part Three
amiable_indian
 
Presentation of Python, Django, DockerStack
Presentation of Python, Django, DockerStackPresentation of Python, Django, DockerStack
Presentation of Python, Django, DockerStack
David Sanchez
 
Python programming computer science and engineering
Python programming computer science and engineeringPython programming computer science and engineering
Python programming computer science and engineering
IRAH34
 
Learn Python The Hard Way Presentation
Learn Python The Hard Way PresentationLearn Python The Hard Way Presentation
Learn Python The Hard Way Presentation
Amira ElSharkawy
 
An Intro to Python in 30 minutes
An Intro to Python in 30 minutesAn Intro to Python in 30 minutes
An Intro to Python in 30 minutes
Sumit Raj
 
Ad

More from Novita Sari (12)

Advanced python
Advanced pythonAdvanced python
Advanced python
Novita Sari
 
Summary python coding
Summary python codingSummary python coding
Summary python coding
Novita Sari
 
Summary machine learning and model deployment
Summary machine learning and model deploymentSummary machine learning and model deployment
Summary machine learning and model deployment
Novita Sari
 
Summary legal
Summary legalSummary legal
Summary legal
Novita Sari
 
Summary introduction to data engineering
Summary introduction to data engineeringSummary introduction to data engineering
Summary introduction to data engineering
Novita Sari
 
Summary data visualization
Summary data visualizationSummary data visualization
Summary data visualization
Novita Sari
 
Summary data modelling
Summary data modellingSummary data modelling
Summary data modelling
Novita Sari
 
Summary business knowledge for data professional
Summary business knowledge for data professionalSummary business knowledge for data professional
Summary business knowledge for data professional
Novita Sari
 
Practice case legal for data professional
Practice case legal for data professionalPractice case legal for data professional
Practice case legal for data professional
Novita Sari
 
Big data tools
Big data toolsBig data tools
Big data tools
Novita Sari
 
Python Function and Looping
Python Function and LoopingPython Function and Looping
Python Function and Looping
Novita Sari
 
Basic Data Engineering
Basic Data EngineeringBasic Data Engineering
Basic Data Engineering
Novita Sari
 
Summary python coding
Summary python codingSummary python coding
Summary python coding
Novita Sari
 
Summary machine learning and model deployment
Summary machine learning and model deploymentSummary machine learning and model deployment
Summary machine learning and model deployment
Novita Sari
 
Summary introduction to data engineering
Summary introduction to data engineeringSummary introduction to data engineering
Summary introduction to data engineering
Novita Sari
 
Summary data visualization
Summary data visualizationSummary data visualization
Summary data visualization
Novita Sari
 
Summary data modelling
Summary data modellingSummary data modelling
Summary data modelling
Novita Sari
 
Summary business knowledge for data professional
Summary business knowledge for data professionalSummary business knowledge for data professional
Summary business knowledge for data professional
Novita Sari
 
Practice case legal for data professional
Practice case legal for data professionalPractice case legal for data professional
Practice case legal for data professional
Novita Sari
 
Python Function and Looping
Python Function and LoopingPython Function and Looping
Python Function and Looping
Novita Sari
 
Basic Data Engineering
Basic Data EngineeringBasic Data Engineering
Basic Data Engineering
Novita Sari
 
Ad

Recently uploaded (20)

Philippine-Constitution-and-Law in hospitality
Philippine-Constitution-and-Law in hospitalityPhilippine-Constitution-and-Law in hospitality
Philippine-Constitution-and-Law in hospitality
kikomendoza006
 
apidays New York 2025 - The Challenge is Not the Pattern, But the Best Integr...
apidays New York 2025 - The Challenge is Not the Pattern, But the Best Integr...apidays New York 2025 - The Challenge is Not the Pattern, But the Best Integr...
apidays New York 2025 - The Challenge is Not the Pattern, But the Best Integr...
apidays
 
apidays New York 2025 - The Future of Small Business Lending with Open Bankin...
apidays New York 2025 - The Future of Small Business Lending with Open Bankin...apidays New York 2025 - The Future of Small Business Lending with Open Bankin...
apidays New York 2025 - The Future of Small Business Lending with Open Bankin...
apidays
 
apidays New York 2025 - Open Source and disrupting the travel distribution ec...
apidays New York 2025 - Open Source and disrupting the travel distribution ec...apidays New York 2025 - Open Source and disrupting the travel distribution ec...
apidays New York 2025 - Open Source and disrupting the travel distribution ec...
apidays
 
Hypothesis Testing Training Material.pdf
Hypothesis Testing Training Material.pdfHypothesis Testing Training Material.pdf
Hypothesis Testing Training Material.pdf
AbdirahmanAli51
 
apidays Singapore 2025 - What exactly are AI Agents by Aki Ranin (Earthshots ...
apidays Singapore 2025 - What exactly are AI Agents by Aki Ranin (Earthshots ...apidays Singapore 2025 - What exactly are AI Agents by Aki Ranin (Earthshots ...
apidays Singapore 2025 - What exactly are AI Agents by Aki Ranin (Earthshots ...
apidays
 
apidays New York 2025 - Unifying OpenAPI & AsyncAPI by Naresh Jain & Hari Kri...
apidays New York 2025 - Unifying OpenAPI & AsyncAPI by Naresh Jain & Hari Kri...apidays New York 2025 - Unifying OpenAPI & AsyncAPI by Naresh Jain & Hari Kri...
apidays New York 2025 - Unifying OpenAPI & AsyncAPI by Naresh Jain & Hari Kri...
apidays
 
Mining Presentation Online Courses for Student
Mining Presentation Online Courses for StudentMining Presentation Online Courses for Student
Mining Presentation Online Courses for Student
Rizki229625
 
Media_Literacy_Index_of_Media_Sector_Employees.pdf
Media_Literacy_Index_of_Media_Sector_Employees.pdfMedia_Literacy_Index_of_Media_Sector_Employees.pdf
Media_Literacy_Index_of_Media_Sector_Employees.pdf
OlhaTatokhina1
 
apidays Singapore 2025 - 4 Identity Essentials for Scaling SaaS in Large Orgs...
apidays Singapore 2025 - 4 Identity Essentials for Scaling SaaS in Large Orgs...apidays Singapore 2025 - 4 Identity Essentials for Scaling SaaS in Large Orgs...
apidays Singapore 2025 - 4 Identity Essentials for Scaling SaaS in Large Orgs...
apidays
 
apidays New York 2025 - Boost API Development Velocity with Practical AI Tool...
apidays New York 2025 - Boost API Development Velocity with Practical AI Tool...apidays New York 2025 - Boost API Development Velocity with Practical AI Tool...
apidays New York 2025 - Boost API Development Velocity with Practical AI Tool...
apidays
 
apidays New York 2025 - Life is But a (Data) Stream by Sandon Jacobs (Confluent)
apidays New York 2025 - Life is But a (Data) Stream by Sandon Jacobs (Confluent)apidays New York 2025 - Life is But a (Data) Stream by Sandon Jacobs (Confluent)
apidays New York 2025 - Life is But a (Data) Stream by Sandon Jacobs (Confluent)
apidays
 
Advanced_English_Pronunciation_in_Use.pdf
Advanced_English_Pronunciation_in_Use.pdfAdvanced_English_Pronunciation_in_Use.pdf
Advanced_English_Pronunciation_in_Use.pdf
leogoemmanguyenthao
 
MEDIA_LITERACY_INDEX_OF_EDUCATORS_ENG.pdf
MEDIA_LITERACY_INDEX_OF_EDUCATORS_ENG.pdfMEDIA_LITERACY_INDEX_OF_EDUCATORS_ENG.pdf
MEDIA_LITERACY_INDEX_OF_EDUCATORS_ENG.pdf
OlhaTatokhina1
 
apidays New York 2025 - Beyond Webhooks: The Future of Scalable API Event Del...
apidays New York 2025 - Beyond Webhooks: The Future of Scalable API Event Del...apidays New York 2025 - Beyond Webhooks: The Future of Scalable API Event Del...
apidays New York 2025 - Beyond Webhooks: The Future of Scalable API Event Del...
apidays
 
apidays New York 2025 - Breaking Barriers: Lessons Learned from API Integrati...
apidays New York 2025 - Breaking Barriers: Lessons Learned from API Integrati...apidays New York 2025 - Breaking Barriers: Lessons Learned from API Integrati...
apidays New York 2025 - Breaking Barriers: Lessons Learned from API Integrati...
apidays
 
2.5-DESPATCH-ORDINARY MAILS.pptxlminub7b7t6f7h7t6f6g7g6fg
2.5-DESPATCH-ORDINARY MAILS.pptxlminub7b7t6f7h7t6f6g7g6fg2.5-DESPATCH-ORDINARY MAILS.pptxlminub7b7t6f7h7t6f6g7g6fg
2.5-DESPATCH-ORDINARY MAILS.pptxlminub7b7t6f7h7t6f6g7g6fg
mk1227103
 
apidays New York 2025 - Using GraphQL SDL files as executable API Contracts b...
apidays New York 2025 - Using GraphQL SDL files as executable API Contracts b...apidays New York 2025 - Using GraphQL SDL files as executable API Contracts b...
apidays New York 2025 - Using GraphQL SDL files as executable API Contracts b...
apidays
 
[Eddie Lee] Capstone Project - AI PM Bootcamp - DataFox.pdf
[Eddie Lee] Capstone Project - AI PM Bootcamp - DataFox.pdf[Eddie Lee] Capstone Project - AI PM Bootcamp - DataFox.pdf
[Eddie Lee] Capstone Project - AI PM Bootcamp - DataFox.pdf
Eddie Lee
 
apidays New York 2025 - Why I Built Another Carbon Measurement Tool for LLMs ...
apidays New York 2025 - Why I Built Another Carbon Measurement Tool for LLMs ...apidays New York 2025 - Why I Built Another Carbon Measurement Tool for LLMs ...
apidays New York 2025 - Why I Built Another Carbon Measurement Tool for LLMs ...
apidays
 
Philippine-Constitution-and-Law in hospitality
Philippine-Constitution-and-Law in hospitalityPhilippine-Constitution-and-Law in hospitality
Philippine-Constitution-and-Law in hospitality
kikomendoza006
 
apidays New York 2025 - The Challenge is Not the Pattern, But the Best Integr...
apidays New York 2025 - The Challenge is Not the Pattern, But the Best Integr...apidays New York 2025 - The Challenge is Not the Pattern, But the Best Integr...
apidays New York 2025 - The Challenge is Not the Pattern, But the Best Integr...
apidays
 
apidays New York 2025 - The Future of Small Business Lending with Open Bankin...
apidays New York 2025 - The Future of Small Business Lending with Open Bankin...apidays New York 2025 - The Future of Small Business Lending with Open Bankin...
apidays New York 2025 - The Future of Small Business Lending with Open Bankin...
apidays
 
apidays New York 2025 - Open Source and disrupting the travel distribution ec...
apidays New York 2025 - Open Source and disrupting the travel distribution ec...apidays New York 2025 - Open Source and disrupting the travel distribution ec...
apidays New York 2025 - Open Source and disrupting the travel distribution ec...
apidays
 
Hypothesis Testing Training Material.pdf
Hypothesis Testing Training Material.pdfHypothesis Testing Training Material.pdf
Hypothesis Testing Training Material.pdf
AbdirahmanAli51
 
apidays Singapore 2025 - What exactly are AI Agents by Aki Ranin (Earthshots ...
apidays Singapore 2025 - What exactly are AI Agents by Aki Ranin (Earthshots ...apidays Singapore 2025 - What exactly are AI Agents by Aki Ranin (Earthshots ...
apidays Singapore 2025 - What exactly are AI Agents by Aki Ranin (Earthshots ...
apidays
 
apidays New York 2025 - Unifying OpenAPI & AsyncAPI by Naresh Jain & Hari Kri...
apidays New York 2025 - Unifying OpenAPI & AsyncAPI by Naresh Jain & Hari Kri...apidays New York 2025 - Unifying OpenAPI & AsyncAPI by Naresh Jain & Hari Kri...
apidays New York 2025 - Unifying OpenAPI & AsyncAPI by Naresh Jain & Hari Kri...
apidays
 
Mining Presentation Online Courses for Student
Mining Presentation Online Courses for StudentMining Presentation Online Courses for Student
Mining Presentation Online Courses for Student
Rizki229625
 
Media_Literacy_Index_of_Media_Sector_Employees.pdf
Media_Literacy_Index_of_Media_Sector_Employees.pdfMedia_Literacy_Index_of_Media_Sector_Employees.pdf
Media_Literacy_Index_of_Media_Sector_Employees.pdf
OlhaTatokhina1
 
apidays Singapore 2025 - 4 Identity Essentials for Scaling SaaS in Large Orgs...
apidays Singapore 2025 - 4 Identity Essentials for Scaling SaaS in Large Orgs...apidays Singapore 2025 - 4 Identity Essentials for Scaling SaaS in Large Orgs...
apidays Singapore 2025 - 4 Identity Essentials for Scaling SaaS in Large Orgs...
apidays
 
apidays New York 2025 - Boost API Development Velocity with Practical AI Tool...
apidays New York 2025 - Boost API Development Velocity with Practical AI Tool...apidays New York 2025 - Boost API Development Velocity with Practical AI Tool...
apidays New York 2025 - Boost API Development Velocity with Practical AI Tool...
apidays
 
apidays New York 2025 - Life is But a (Data) Stream by Sandon Jacobs (Confluent)
apidays New York 2025 - Life is But a (Data) Stream by Sandon Jacobs (Confluent)apidays New York 2025 - Life is But a (Data) Stream by Sandon Jacobs (Confluent)
apidays New York 2025 - Life is But a (Data) Stream by Sandon Jacobs (Confluent)
apidays
 
Advanced_English_Pronunciation_in_Use.pdf
Advanced_English_Pronunciation_in_Use.pdfAdvanced_English_Pronunciation_in_Use.pdf
Advanced_English_Pronunciation_in_Use.pdf
leogoemmanguyenthao
 
MEDIA_LITERACY_INDEX_OF_EDUCATORS_ENG.pdf
MEDIA_LITERACY_INDEX_OF_EDUCATORS_ENG.pdfMEDIA_LITERACY_INDEX_OF_EDUCATORS_ENG.pdf
MEDIA_LITERACY_INDEX_OF_EDUCATORS_ENG.pdf
OlhaTatokhina1
 
apidays New York 2025 - Beyond Webhooks: The Future of Scalable API Event Del...
apidays New York 2025 - Beyond Webhooks: The Future of Scalable API Event Del...apidays New York 2025 - Beyond Webhooks: The Future of Scalable API Event Del...
apidays New York 2025 - Beyond Webhooks: The Future of Scalable API Event Del...
apidays
 
apidays New York 2025 - Breaking Barriers: Lessons Learned from API Integrati...
apidays New York 2025 - Breaking Barriers: Lessons Learned from API Integrati...apidays New York 2025 - Breaking Barriers: Lessons Learned from API Integrati...
apidays New York 2025 - Breaking Barriers: Lessons Learned from API Integrati...
apidays
 
2.5-DESPATCH-ORDINARY MAILS.pptxlminub7b7t6f7h7t6f6g7g6fg
2.5-DESPATCH-ORDINARY MAILS.pptxlminub7b7t6f7h7t6f6g7g6fg2.5-DESPATCH-ORDINARY MAILS.pptxlminub7b7t6f7h7t6f6g7g6fg
2.5-DESPATCH-ORDINARY MAILS.pptxlminub7b7t6f7h7t6f6g7g6fg
mk1227103
 
apidays New York 2025 - Using GraphQL SDL files as executable API Contracts b...
apidays New York 2025 - Using GraphQL SDL files as executable API Contracts b...apidays New York 2025 - Using GraphQL SDL files as executable API Contracts b...
apidays New York 2025 - Using GraphQL SDL files as executable API Contracts b...
apidays
 
[Eddie Lee] Capstone Project - AI PM Bootcamp - DataFox.pdf
[Eddie Lee] Capstone Project - AI PM Bootcamp - DataFox.pdf[Eddie Lee] Capstone Project - AI PM Bootcamp - DataFox.pdf
[Eddie Lee] Capstone Project - AI PM Bootcamp - DataFox.pdf
Eddie Lee
 
apidays New York 2025 - Why I Built Another Carbon Measurement Tool for LLMs ...
apidays New York 2025 - Why I Built Another Carbon Measurement Tool for LLMs ...apidays New York 2025 - Why I Built Another Carbon Measurement Tool for LLMs ...
apidays New York 2025 - Why I Built Another Carbon Measurement Tool for LLMs ...
apidays
 

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