HowTos
Free Video Tutorials
Written Tutorials
💲Paid Courses
Python Shell
Mailing List
About Us
Home/
Top Python How-To Questions
Flush the output of the print function.
python
print
output
flush
Determine the type of an object.
python
list
types
tuple
str
dict
int
Call a function of a module by using its name.
python
object
function-call
Pass a variable by reference.
python
reference
parameter-passing
pass-by-reference
Make a flat list out of a list of lists.
python
list
multidimensional-array
flatten
Merge two dictionaries in a single expression.
python
merge
dictionary
Top Python What Questions
What's the canonical way to check a type in Python?
python
canonical
check-type
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
Should I use a for-loop or a list comprehension in Python?
python
list comprehension
comparing
for-loop
faster
What does "yield" do in a Python function?
python
yield
generator
What is if __name__ == "__main__" in Python?
python
__main__
__name__==
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