Login
Remember
Register
Questions
Unanswered
Categories
Ask a Question
Quiz
Ask a Question
How to create a minimal class in Python
+2
votes
asked
Mar 5, 2020
in
Programming Languages
by
pythonuser
(
74.2k
points)
How to declare a minimal class in Python that will do nothing?
python
class
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
+1
vote
answered
Mar 5, 2020
by
pkumar81
(
351k
points)
selected
Mar 8
by
pythonuser
Best answer
pass
statement can be used for creating minimal classes:
class AnEmptyClass:
pass
Please
log in
or
register
to add a comment.
Related questions
+4
votes
1
answer
How can I check if some method is present in an object/class in Python
asked
Dec 15, 2021
in
Machine Learning
by
kush
(
40.5k
points)
python
class
object
+1
vote
1
answer
How to create a dataframe using lists in Python?
asked
May 3, 2023
in
Programming Languages
by
phpuser
(
56.8k
points)
python
list
dataframe
+4
votes
1
answer
How to create a 2D array/matrix of same values in Python
asked
Dec 14, 2021
in
Programming Languages
by
kush
(
40.5k
points)
python
array
matrix
+2
votes
1
answer
How to create a new empty dictionary in Python?
asked
Mar 8, 2020
in
Programming Languages
by
pythonuser
(
74.2k
points)
python
dictionary
+2
votes
1
answer
How to create a spreadsheet (xls/xlsx file) in Python
asked
Nov 29, 2018
in
Programming Languages
by
pythonuser
(
74.2k
points)
spreadsheet
python
xlsx
xls
Categories
All categories
Programming Languages
(722)
Machine Learning
(34)
Operating Systems
(123)
Databases
(93)
Web & Google
(89)
CMS Tips
(33)
General IT Tips
(86)
GK Quiz QA
(81)
...