HowTos
Free Video Tutorials
Written Tutorials
💲Paid Courses
Python Shell
Mailing List
About Us
Home/
Top Python How-To Questions
Check if a string is empty.
python
string
check
empty
Check if a string is a float.
python
check type
float
Determine the type of an object.
python
list
types
tuple
str
dict
int
Know if an object has an attribute.
python
attributes
object
Check if a given key already exists in a dictionary.
python
dictionary
dictionary-key
Check if a list is empty.
python
list
Check if a string contains a substring.
python
string
contains
substring
Check whether a file exists without exceptions.
python
file
file-exists
Check if a text file is empty.
python
file
check if empty
Top Python What Questions
Why do Python classes inherit 'object'
python
inheritance
object-class
What's the canonical way to check a type in Python?
python
canonical
check-type
Why is reading lines from stdin much slower in C++ than Python?
python
readlines
c++
What does ** (double star/asterisk) and * (star/asterisk) do for parameters?
parameter-passing
python syntax
argument-unpacking
variadic-functions
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