HowTos
Free Video Tutorials
Written Tutorials
💲Paid Courses
Python Shell
Mailing List
About Us
Home/
Top Python How-To Questions
Choose the best string formatting: % vs. .format vs. f-string literal.
'.format'
string formatting
f-string
'%'
Get the class name of an instance.
python
class name
instance
Use static methods.
python
static-methods
Determine the type of an object.
python
list
types
tuple
str
dict
int
Know if an object has an attribute.
python
attributes
object
Use the super() with __init__() methods.
oop
super
inheritance
python class
Create a class.
python
create a class
define a class
class definition
Create a flask app.
create
app
flask
render template
html flask
python.
Top Python What Questions
Why do Python classes inherit 'object'
python
inheritance
object-class
What is the meaning of single and double underscore before an object name?
python
double-underscore
single-underscore
What's the canonical way to check a type in Python?
python
canonical
check-type
What is the proper way to declare custom exceptions in modern Python?
python
custom-exeptions
declare
Are static class variables possible in Python?
python
oop
class-variables
static
class
What are metaclasses in Python?
python
oop
metaclass
python-class
python-datamodel
Python Classes and OOP Explained
oop
object oriented programming
classes
What is the difference between a staticmethod and a classmethod in Python?
python
classmethod vs staticmethod
static method
instance method
class method
Go to Top
Become a Patron
Do you like my work and would want to contribute? You can become a patron on my Patreon below!
Become a Patron