Login
Remember
Register
Questions
Unanswered
Categories
Ask a Question
Tech Blogs
Quiz
Ask a Question
How to create a minimal class in Python
+2
votes
asked
Mar 5, 2020
in
Programming Languages
by
pythonuser
(
63.5k
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
0
votes
answered
Mar 5, 2020
by
pkumar81
(
271k
points)
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
(
39.3k
points)
python
class
object
+1
vote
1
answer
How to create a dataframe using lists in Python?
asked
May 3
in
Programming Languages
by
phpuser
(
48.9k
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
(
39.3k
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
(
63.5k
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
(
63.5k
points)
spreadsheet
python
xlsx
xls
Categories
All categories
Programming Languages
(699)
Machine Learning
(31)
Operating Systems
(114)
Databases
(91)
Web & Google
(85)
CMS Tips
(31)
General IT Tips
(77)
GK Quiz QA
(81)
...