HowTos
Free Video Tutorials
Written Tutorials
💲Python Courses
🛠Daily Python Projects
Python Shell
About Us
Home/
Top Python How-To Questions
Send an email from Gmail.
email
Download a youtube video with pytube.
youtube
pytube
Scrape a Wikipedia page.
python
requests
scrape
bs4
Create a simple Tkinter app.
Tkinter
gui
Prettyprint a JSON file.
python
prettyprint
json file
Create a dictionary with list comprehension.
python
dictionary
list comprehension
Select multiple columns in a Pandas dataframe.
python
pandas
column
select multiple
Convert two lists into a dictionary.
python
convert
list-to-dictonary
Extract extension from filename.
python
filenames
file-extension
Read from stdin (standard input).
python
stdin
read
Delete a column from a Pandas DataFrame.
pandas
dataframe
column
delete
Delete an element from a dictionary.
python
dictionary
delete element
Remove an element from a list by index.
python
list
indexing
Select an item from a list randomly.
python
list
random
Call a function of a module by using its name.
python
object
function-call
Sort a list of dictionaries by a value of the dictionary.
python
list
dictionary
sorting
data-structures
Remove a key from dictionary.
python
dictionary
data-structures
unset
Rename column names with Pandas.
python
dataframe
pandas replace
rename
Convert a string into datetime format.
python
datetime
convert
Print coloured text on the terminal.
python
output
terminal
ansi-colors
Select rows from a DataFrame based on column values with Pandas.
python
pandas
dataframe
Check if a given key already exists in a dictionary.
python
dictionary
dictionary-key
Iterate over rows in a DataFrame for Pandas.
python
pandas
dataframe
Add new keys to a dictionary.
python
dictionary
lookup
Sort a dictionary by value.
python
dictionary
sorting
Iterate over dictionaries using for loops.
python
dictionary
iterating
Convert a dictionary into a list.
python
convert dictionary to list
Convert a list into a dictionary.
python
convert list to dictionary
Do dictionary comprehension.
python
dictionary comprehension
Extract items from two different lists into one list.
python
zip
lists
extract item
merge lists
Top Python What Questions
How to work with database files with Python and SQLite
python
sqlite
Beginner tutorial on OOP and Classes in Python
python
oop
classes
Using Bootstrap with Flask
python
flask
bootstrap
Bootstrap beginner's tutorial
bootstrap
Working with CSV files in Python
pandas
csv
Working with Word documents with Python using DOCX library
python
word doc
What is "object-state" in Python?
object
state
How to use the Python imagehash library
imagehash
How to use the Pillow library in Python.
pillow
Here is how to build Streamlit apps in Python.
python
streamlit
What is the Python 3 equivalent of “python -m SimpleHTTPServer”
python3
python -m SimpleHTTPServer
Why do Python classes inherit 'object'
python
inheritance
object-class
What is the difference between venv, pyvenv, pyenv, virtualenv, virtualenvwrapper, pipenv?
python
venv
virtualenv
pipenv
What ipython
pyenv
virtualenvwrapper
pyvenv
What is the meaning of single and double underscore before an object name?
python
double-underscore
single-underscore
What is the proper way to declare custom exceptions in modern Python?
python
custom-exeptions
declare
What can I use as a replacement for the switch statement in Python?
python
replace
switch statement
What to do to import files from a different folder in python
python
python-import
importerror
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 is __init__.py used for?
python
module
package
python-packaging
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
What is if __name__ == "__main__" in Python?
python
__main__
__name__==
Go to Top