SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
Python Interview Questions
A list of top frequently asked Python interview questions
and answers are given below.
1) What is Python?
Python is a high level object-oriented programming language
with objects, modules, threads, exceptions and automatic
memory management. It is a simple yet powerful
programming language. It can run equally on different
platforms such as Windows, Linux, UNIX, Macintosh etc. Thus,
Python is a portable language.
2) What are the advantages of Python?
Following are the main advantages of using Python.
◦ Free and open source
◦ Portable
◦ Extensible
◦ Object oriented
◦ Built-in data structure
3)What is PEP 8?
PEP 8 is a coding convention which specifies a set of
guidelines, about how to write your Python code more
readable.
4) What is used to create Unicode string in
Python?
You should use "Unicode" before the string. For example:
Unicode (text).
5) Explain how Python is interpreted?
Python is an interpreted language. The Python language
program runs directly from the source code. It converts the
source code into an intermediate language, which is again
translated into machine language that has to be executed.
6) How memory is managed in Python?
Memory is managed in Python in following way:
◦ Memory is managed in Python by private heap space. All
Python objects and data structures are located in a
private heap. The programmer does not have an access
to this private heap and interpreter takes care of this
Python private heap.
◦ Python memory manager is responsible for allocating Python
heap space for Python objects.
◦ Python also have an inbuilt garbage collector, which recycle
all the unused memory and frees the memory and makes
it available to the heap space.
7) What is Python decorator?
A Python decorator is a specific change made within Python
syntax to alter functions easily.
8) What are the rules for local and global
variable in Python?
In Python, variables that are only referenced inside a function
are called implicitly global. If a variable is assigned a new
value anywhere within the function's body, it's assumed to be
a local. If a variable is ever assigned a new value inside the
function, the variable is implicitly local, and you need to
explicitly declare it as 'global'.
9) What is namespace in Python?
In Python, every name has a place where it lives and can be
hooked for. This is known as namespace. It is like a box where
a variable name is mapped to the object placed. Whenever the
variable is searched out, this box will be searched, to get
corresponding object.
10) What are iterators in Python?
In Python, iterators are used to iterate a group of elements,
containers like list.
11) What is generator in Python?
In Python, generator is a way that specifies how to implement
iterators. It is a normal function except that it yields
expression in the function.
12) What is slicing in Python?
Slicing is a mechanism used to select a range of items from
sequence type like list, tuple, string etc.
13) What is dictionary in Python?
The built-in datatypes in Python is called dictionary. It defines
one-to-one relationship between keys and values. Dictionaries
contain pair of keys and their corresponding values.
Dictionaries are indexed by keys.
Let's take an example
The following example contains some keys ? Country Hero &
Cartoon. Their corresponding values are India, Modi and Rahul
respectively.
1 >>> dict = {'Country': 'India', 'Hero': 'Modi', 'Cartoon': 'Rah
ul'}
2 >>>print dict[Country]
3 India
4 >>>print dict[Hero]
5 Modi
6 >>>print dict[Cartoon]
7 Rahul
14) What is Pass in Python?
Pass specifies a Python statement without operations. It is a
place holder in a compound statement, where there should be
a blank left and nothing has to be written there.
15) Explain docstring in Python?
A Python documentation string is called docstring. It is used
for documenting Python functions, modules and classes.
16) What is negative index in Python?
Python sequences are indexed in positive and negative
numbers. For example: 0 is the first positive index, 1 is the
second positive index and so on. For negative indexes -1 is the
last negative index, -2 is the second last negative index and so
on.
17) What is pickling and unpickling in
Python?
Pickling is a process in which a pickle module accepts any
Python object, converts it into a string representation and
dumps it into a file by using dump() function.
Unpickling is a process of retrieving original Python object
from the stored string representation for use.
Pickleis a standard modulewhich serializes and de-serializes
a Python objectstructure.
18) How can you make forms in Python?
You have to import cgi module to access form fields using
FieldStorage class.
Attributes of class FieldStorage for form:
form.name: The name of the field, if specified.
form.filename: If an FTP transaction, the client-side
filename.
form.value: The value of the field as a string.
form.file: file object from which data can be read.
form.type: The content type, if applicable.
form.type_options: The options of the 'content-type' line of
the HTTP request, returned as a dictionary.
form.disposition: The field 'content-disposition'; None, if
unspecified.
form.disposition_options: The options for 'content-
disposition'.
form.headers: All of the HTTP headers returned as a
dictionary.
Example
1 import cgi
2 form = cgi.FieldStorage()
3 if not (form.has_key("name") and form.has_key("age")):
4 print "<H1>Name & Age not Entered</H1>"
5 print "Fill the Name & Age accurately."
6 return
7 print "<p>name:", form["name"].value
8 print "<p>Age:", form["age"].value
19)What are the differences between
Python 2.x and Python 3.x?
Python 2.x is an older version of Python. It is a legacy now.
Python 3.x is newer. It is the present and future of this
language.
The most visible difference between them is in print
statement. In Python 2 it is print ?Hello? and in Python 3, it is
print (?Hello?).
20)How can you organize your code to
make it easier to change the base class?
You have to define an alias for the base class, assign the real
base class to it before your class definition, and use the alias
throughout your class. you can also use this method if you
want to decide dynamically (e.g. depending on availability of
resources) which base class to use.
Example
1 BaseAlias = <real base class>
2 class Derived(BaseAlias):
3 def meth(self):
4 BaseAlias.meth(self)

More Related Content

What's hot (20)

PDF
Variables & Data Types In Python | Edureka
Edureka!
 
PPTX
Virtual function in C++ Pure Virtual Function
Kamlesh Makvana
 
PPT
Python Programming ppt
ismailmrribi
 
PPTX
Java Comments | Java course
RAKESH P
 
PPTX
Introduction to python for Beginners
Sujith Kumar
 
PDF
Python decision making
Learnbay Datascience
 
PPTX
C functions
University of Potsdam
 
PDF
Java conditional statements
Kuppusamy P
 
PPTX
Functions in c
sunila tharagaturi
 
PDF
Top 100 Python Interview Questions And Answers
ProBytes
 
PPTX
C# classes objects
Dr.Neeraj Kumar Pandey
 
PPTX
Python Tutorial Part 1
Haitham El-Ghareeb
 
PPTX
Functions in C.pptx
Ashwini Raut
 
DOCX
Python Interview Questions For Freshers
zynofustechnology
 
PPTX
Intro to Python Programming Language
Dipankar Achinta
 
PPTX
Python training
Kunalchauhan76
 
DOCX
Python Applications
AbhinavSharma309481
 
PPTX
Python programming | Fundamentals of Python programming
KrishnaMildain
 
PPT
Introductoin to Python.ppt
TyronHawkinsOBato
 
PPTX
Python and its Applications
Abhijeet Singh
 
Variables & Data Types In Python | Edureka
Edureka!
 
Virtual function in C++ Pure Virtual Function
Kamlesh Makvana
 
Python Programming ppt
ismailmrribi
 
Java Comments | Java course
RAKESH P
 
Introduction to python for Beginners
Sujith Kumar
 
Python decision making
Learnbay Datascience
 
Java conditional statements
Kuppusamy P
 
Functions in c
sunila tharagaturi
 
Top 100 Python Interview Questions And Answers
ProBytes
 
C# classes objects
Dr.Neeraj Kumar Pandey
 
Python Tutorial Part 1
Haitham El-Ghareeb
 
Functions in C.pptx
Ashwini Raut
 
Python Interview Questions For Freshers
zynofustechnology
 
Intro to Python Programming Language
Dipankar Achinta
 
Python training
Kunalchauhan76
 
Python Applications
AbhinavSharma309481
 
Python programming | Fundamentals of Python programming
KrishnaMildain
 
Introductoin to Python.ppt
TyronHawkinsOBato
 
Python and its Applications
Abhijeet Singh
 

Viewers also liked (13)

PPTX
CMP 2-13-16
rastapup
 
PPTX
BET TRADERS WIN
Julius Jack Armstrong
 
PDF
CompTIA Network+ N10-006
Tertius Stander
 
PDF
DALICC (Data Licenses Clearance Centre)
Stadt Wien
 
PPTX
Deployment and distribution- iOS
Suraj B
 
PPTX
Literacy and numeracy
Dutot Caroline
 
PDF
Jude Cosgrove - Early child health and cognitive outcomes: secondary analysi...
Institute of Public Health in Ireland
 
PPTX
Numeracy Information Evening KS1
rpalmerratcliffe
 
PDF
Agile ncr agile coaching-v1
AgileNCR2016
 
PPTX
CONSTRUCT YOUR DREAM HOME
Bangalore Property
 
PPTX
ECM Pre-Numeracy for Kindergarten
Jimmy Keng
 
PPT
Literacy & Numeracy Week 2013 Reading With Our Buddies
Stuart Meachem
 
DOCX
01 июля 2016 года на базе мбдоу
virtualtaganrog
 
CMP 2-13-16
rastapup
 
BET TRADERS WIN
Julius Jack Armstrong
 
CompTIA Network+ N10-006
Tertius Stander
 
DALICC (Data Licenses Clearance Centre)
Stadt Wien
 
Deployment and distribution- iOS
Suraj B
 
Literacy and numeracy
Dutot Caroline
 
Jude Cosgrove - Early child health and cognitive outcomes: secondary analysi...
Institute of Public Health in Ireland
 
Numeracy Information Evening KS1
rpalmerratcliffe
 
Agile ncr agile coaching-v1
AgileNCR2016
 
CONSTRUCT YOUR DREAM HOME
Bangalore Property
 
ECM Pre-Numeracy for Kindergarten
Jimmy Keng
 
Literacy & Numeracy Week 2013 Reading With Our Buddies
Stuart Meachem
 
01 июля 2016 года на базе мбдоу
virtualtaganrog
 
Ad

Similar to Python interview questions (20)

PPTX
Python interview questions and answers
VigneshVijay21
 
PPTX
Python Interview questions 2020
VigneshVijay21
 
PDF
Python_Interview_Questions.pdf
Samir P.
 
PPTX
Introduction to Programming.pptx ok ok ok
846Sarthakpandey
 
DOCX
Python interview questions and answers
RojaPriya
 
PDF
Python Interview Preparation questons...
harshitgupta20022005
 
PDF
Python Viva Interview Questions PDF By ScholarHat
Scholarhat
 
PDF
Python interview questions and answers
kavinilavuG
 
PDF
Top Most Python Interview Questions.pdf
Datacademy.ai
 
DOCX
Python Interview Questions For Experienced
zynofustechnology
 
PPTX
Python_Buildin_Data_types_Lecture_8.pptx
foxel54542
 
PPTX
Python unit 2 is added. Has python related programming content
swarna16
 
PDF
interviewbit.pdf
BasavarajaG8
 
PDF
Top 80 Interview Questions on Python for Data Science | Tutort - Best Data Sc...
Tutort Academy
 
PDF
problem solving and python programming UNIT 2.pdf
rajesht522501
 
PDF
Problem Solving and Python Programming UNIT 2.pdf
rajesht522501
 
PDF
web programming UNIT VIII python by Bhavsingh Maloth
Bhavsingh Maloth
 
PDF
Tutorial on-python-programming
Chetan Giridhar
 
PPTX
PYTHON PPT.pptx python is very useful for day to day life
NaitikSingh33
 
PDF
Top 20 Python Interview Questions And Answers 2023.pdf
AnanthReddy38
 
Python interview questions and answers
VigneshVijay21
 
Python Interview questions 2020
VigneshVijay21
 
Python_Interview_Questions.pdf
Samir P.
 
Introduction to Programming.pptx ok ok ok
846Sarthakpandey
 
Python interview questions and answers
RojaPriya
 
Python Interview Preparation questons...
harshitgupta20022005
 
Python Viva Interview Questions PDF By ScholarHat
Scholarhat
 
Python interview questions and answers
kavinilavuG
 
Top Most Python Interview Questions.pdf
Datacademy.ai
 
Python Interview Questions For Experienced
zynofustechnology
 
Python_Buildin_Data_types_Lecture_8.pptx
foxel54542
 
Python unit 2 is added. Has python related programming content
swarna16
 
interviewbit.pdf
BasavarajaG8
 
Top 80 Interview Questions on Python for Data Science | Tutort - Best Data Sc...
Tutort Academy
 
problem solving and python programming UNIT 2.pdf
rajesht522501
 
Problem Solving and Python Programming UNIT 2.pdf
rajesht522501
 
web programming UNIT VIII python by Bhavsingh Maloth
Bhavsingh Maloth
 
Tutorial on-python-programming
Chetan Giridhar
 
PYTHON PPT.pptx python is very useful for day to day life
NaitikSingh33
 
Top 20 Python Interview Questions And Answers 2023.pdf
AnanthReddy38
 
Ad

More from Pragati Singh (20)

PDF
ISACA Membership-certificate-2034890 | ISACA
Pragati Singh
 
PDF
Leading AI driven Business Transformation.pdf
Pragati Singh
 
PDF
PMI Prompt Engineering | Gen AI Program Management
Pragati Singh
 
PDF
Shaping the Future of Project Management with AI.pdf
Pragati Singh
 
PDF
Nessus Scanner: Network Scanning from Beginner to Advanced!
Pragati Singh
 
PDF
Tenable Certified Sales Associate - CS.pdf
Pragati Singh
 
PDF
Analyzing risk (pmbok® guide sixth edition)
Pragati Singh
 
PDF
Pragati Singh | Sap Badge
Pragati Singh
 
PDF
Ios record of achievement
Pragati Singh
 
PDF
Ios2 confirmation ofparticipation
Pragati Singh
 
PDF
Certificate of completion android studio essential training 2016
Pragati Singh
 
PDF
Certificate of completion android development essential training create your ...
Pragati Singh
 
PDF
Certificate of completion android development essential training design a use...
Pragati Singh
 
PDF
Certificate of completion android development essential training support mult...
Pragati Singh
 
PDF
Certificate of completion android development essential training manage navig...
Pragati Singh
 
PDF
Certificate of completion android development essential training local data s...
Pragati Singh
 
PDF
Certificate of completion android development essential training distributing...
Pragati Singh
 
PDF
Certificate of completion android app development communicating with the user
Pragati Singh
 
PDF
Certificate of completion building flexible android apps with the fragments api
Pragati Singh
 
PDF
Certificate of completion android app development design patterns for mobile ...
Pragati Singh
 
ISACA Membership-certificate-2034890 | ISACA
Pragati Singh
 
Leading AI driven Business Transformation.pdf
Pragati Singh
 
PMI Prompt Engineering | Gen AI Program Management
Pragati Singh
 
Shaping the Future of Project Management with AI.pdf
Pragati Singh
 
Nessus Scanner: Network Scanning from Beginner to Advanced!
Pragati Singh
 
Tenable Certified Sales Associate - CS.pdf
Pragati Singh
 
Analyzing risk (pmbok® guide sixth edition)
Pragati Singh
 
Pragati Singh | Sap Badge
Pragati Singh
 
Ios record of achievement
Pragati Singh
 
Ios2 confirmation ofparticipation
Pragati Singh
 
Certificate of completion android studio essential training 2016
Pragati Singh
 
Certificate of completion android development essential training create your ...
Pragati Singh
 
Certificate of completion android development essential training design a use...
Pragati Singh
 
Certificate of completion android development essential training support mult...
Pragati Singh
 
Certificate of completion android development essential training manage navig...
Pragati Singh
 
Certificate of completion android development essential training local data s...
Pragati Singh
 
Certificate of completion android development essential training distributing...
Pragati Singh
 
Certificate of completion android app development communicating with the user
Pragati Singh
 
Certificate of completion building flexible android apps with the fragments api
Pragati Singh
 
Certificate of completion android app development design patterns for mobile ...
Pragati Singh
 

Recently uploaded (20)

PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PDF
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
PPTX
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PPTX
Neurodivergent Friendly Schools - Slides from training session
Pooky Knightsmith
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PPTX
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PPTX
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
PPTX
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PPTX
GRADE-3-PPT-EVE-2025-ENG-Q1-LESSON-1.pptx
EveOdrapngimapNarido
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PDF
Horarios de distribución de agua en julio
pegazohn1978
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
Neurodivergent Friendly Schools - Slides from training session
Pooky Knightsmith
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
GRADE-3-PPT-EVE-2025-ENG-Q1-LESSON-1.pptx
EveOdrapngimapNarido
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
Horarios de distribución de agua en julio
pegazohn1978
 

Python interview questions

  • 1. Python Interview Questions A list of top frequently asked Python interview questions and answers are given below. 1) What is Python? Python is a high level object-oriented programming language with objects, modules, threads, exceptions and automatic memory management. It is a simple yet powerful programming language. It can run equally on different platforms such as Windows, Linux, UNIX, Macintosh etc. Thus, Python is a portable language. 2) What are the advantages of Python? Following are the main advantages of using Python. ◦ Free and open source ◦ Portable ◦ Extensible ◦ Object oriented ◦ Built-in data structure 3)What is PEP 8? PEP 8 is a coding convention which specifies a set of guidelines, about how to write your Python code more readable. 4) What is used to create Unicode string in Python? You should use "Unicode" before the string. For example: Unicode (text). 5) Explain how Python is interpreted? Python is an interpreted language. The Python language program runs directly from the source code. It converts the source code into an intermediate language, which is again translated into machine language that has to be executed. 6) How memory is managed in Python? Memory is managed in Python in following way: ◦ Memory is managed in Python by private heap space. All
  • 2. Python objects and data structures are located in a private heap. The programmer does not have an access to this private heap and interpreter takes care of this Python private heap. ◦ Python memory manager is responsible for allocating Python heap space for Python objects. ◦ Python also have an inbuilt garbage collector, which recycle all the unused memory and frees the memory and makes it available to the heap space. 7) What is Python decorator? A Python decorator is a specific change made within Python syntax to alter functions easily. 8) What are the rules for local and global variable in Python? In Python, variables that are only referenced inside a function are called implicitly global. If a variable is assigned a new value anywhere within the function's body, it's assumed to be a local. If a variable is ever assigned a new value inside the function, the variable is implicitly local, and you need to explicitly declare it as 'global'. 9) What is namespace in Python? In Python, every name has a place where it lives and can be hooked for. This is known as namespace. It is like a box where a variable name is mapped to the object placed. Whenever the variable is searched out, this box will be searched, to get corresponding object. 10) What are iterators in Python? In Python, iterators are used to iterate a group of elements, containers like list. 11) What is generator in Python? In Python, generator is a way that specifies how to implement iterators. It is a normal function except that it yields expression in the function. 12) What is slicing in Python?
  • 3. Slicing is a mechanism used to select a range of items from sequence type like list, tuple, string etc. 13) What is dictionary in Python? The built-in datatypes in Python is called dictionary. It defines one-to-one relationship between keys and values. Dictionaries contain pair of keys and their corresponding values. Dictionaries are indexed by keys. Let's take an example The following example contains some keys ? Country Hero & Cartoon. Their corresponding values are India, Modi and Rahul respectively. 1 >>> dict = {'Country': 'India', 'Hero': 'Modi', 'Cartoon': 'Rah ul'} 2 >>>print dict[Country] 3 India 4 >>>print dict[Hero] 5 Modi 6 >>>print dict[Cartoon] 7 Rahul 14) What is Pass in Python? Pass specifies a Python statement without operations. It is a place holder in a compound statement, where there should be a blank left and nothing has to be written there. 15) Explain docstring in Python? A Python documentation string is called docstring. It is used for documenting Python functions, modules and classes. 16) What is negative index in Python? Python sequences are indexed in positive and negative numbers. For example: 0 is the first positive index, 1 is the second positive index and so on. For negative indexes -1 is the last negative index, -2 is the second last negative index and so on. 17) What is pickling and unpickling in Python? Pickling is a process in which a pickle module accepts any
  • 4. Python object, converts it into a string representation and dumps it into a file by using dump() function. Unpickling is a process of retrieving original Python object from the stored string representation for use. Pickleis a standard modulewhich serializes and de-serializes a Python objectstructure. 18) How can you make forms in Python? You have to import cgi module to access form fields using FieldStorage class. Attributes of class FieldStorage for form: form.name: The name of the field, if specified. form.filename: If an FTP transaction, the client-side filename. form.value: The value of the field as a string. form.file: file object from which data can be read. form.type: The content type, if applicable. form.type_options: The options of the 'content-type' line of the HTTP request, returned as a dictionary. form.disposition: The field 'content-disposition'; None, if unspecified. form.disposition_options: The options for 'content- disposition'. form.headers: All of the HTTP headers returned as a dictionary. Example 1 import cgi 2 form = cgi.FieldStorage() 3 if not (form.has_key("name") and form.has_key("age")): 4 print "<H1>Name & Age not Entered</H1>" 5 print "Fill the Name & Age accurately." 6 return 7 print "<p>name:", form["name"].value 8 print "<p>Age:", form["age"].value 19)What are the differences between Python 2.x and Python 3.x? Python 2.x is an older version of Python. It is a legacy now. Python 3.x is newer. It is the present and future of this language. The most visible difference between them is in print statement. In Python 2 it is print ?Hello? and in Python 3, it is
  • 5. print (?Hello?). 20)How can you organize your code to make it easier to change the base class? You have to define an alias for the base class, assign the real base class to it before your class definition, and use the alias throughout your class. you can also use this method if you want to decide dynamically (e.g. depending on availability of resources) which base class to use. Example 1 BaseAlias = <real base class> 2 class Derived(BaseAlias): 3 def meth(self): 4 BaseAlias.meth(self)