Login
Remember
Register
Questions
Unanswered
Tags
Categories
Ask a Question
Blogs
Contact Us
Ask a Question
How to create a minimal class in Python
+2
votes
asked
Mar 5, 2020
in
Programming Languages
by
pythonuser
(
15.7k
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
(
27.1k
points)
pass
statement can be used for creating minimal classes:
class AnEmptyClass:
pass
Please
log in
or
register
to add a comment.
Related questions
+2
votes
1
answer
How to create a new empty dictionary in Python?
asked
Mar 8, 2020
in
Programming Languages
by
pythonuser
(
15.7k
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
(
15.7k
points)
spreadsheet
python
xlsx
xls
+2
votes
1
answer
How to create directory with subdirectory in Python
asked
Oct 16, 2019
in
Programming Languages
by
pythonuser
(
15.7k
points)
python
dictionary
subdirectory
+2
votes
1
answer
Python: how to create a dictionary using two lists
asked
Oct 5, 2019
in
Programming Languages
by
pythonuser
(
15.7k
points)
python
dictionary
list
+2
votes
1
answer
Python : how to find the index of the maximum and minimum values in a list
asked
Jan 4
in
Programming Languages
by
pythonuser
(
15.7k
points)
python
numpy
list
array
Categories
All categories
General
(35)
CMS Tips
(12)
Operating Systems
(78)
Web & Google
(59)
Programming Languages
(348)
Databases
(59)
Most popular tags
python
list
numpy
linux
array
ubuntu
pandas
php
file
dataframe
string
dictionary
postgresql
command
apache
mysql
csr_matrix
directory
vps
csv
windows
sql
nginx
sort
error
...