HowTos
Free Video Tutorials
Written Tutorials
💲Python Courses
🛠Daily Python Projects
Python Shell
About Us
Home/
Top Python How-To Questions
Delete a file.
python
delete file
Send an email from Gmail.
email
Download a youtube video with pytube.
youtube
pytube
Create matplotlib graphs.
python
matplotlib
Rename a file.
python
files
Create a text file and write text on it.
python
create text file
Read a text file with Python.
python
read text file
Scrape a Wikipedia page.
python
requests
scrape
bs4
Create a simple Tkinter app.
Tkinter
gui
Add a new column to an Excel file.
pandas
Prettyprint a JSON file.
python
prettyprint
json file
Create a dictionary with list comprehension.
python
dictionary
list comprehension
Profile a script.
python
profile script
Extract extension from filename.
python
filenames
file-extension
Print to stderr in Python.
python
stderr
printing
zen-of-python
Use a pythonic way to create a long multi-line string.
python
string
multilinestring
multiline
Read from stdin (standard input).
python
stdin
read
Delete a column from a Pandas DataFrame.
pandas
dataframe
column
delete
Read a file line-by-line into a list.
python
string
file
readlines
Rename column names with Pandas.
python
dataframe
pandas replace
rename
Print coloured text on the terminal.
python
output
terminal
ansi-colors
Find current directory of a file.
python
directory
file-directory
Change the size of figures drawn with Matplotlib.
python
matplotlib
plot
graph
visualization
Delete a file or folder.
python
directory
delete-file
file-io
Split a list into evenly sized parts.
python
list
split
chunks
Select rows from a DataFrame based on column values with Pandas.
python
pandas
dataframe
Iterate over rows in a DataFrame for Pandas.
python
pandas
dataframe
Copy a file.
python
file
filesystems
file-copying
copy
List all files of a directory.
python
directory
list files
Safely create a nested directory.
python
directory
exception
operating-system
path
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 proper way to declare custom exceptions in modern Python?
python
custom-exeptions
declare
How to add an existing venv virtual environment in PyCharm
venv
pycharm
What to do to import files from a different folder in python
python
python-import
importerror
Are static class variables possible in Python?
python
oop
class-variables
static
class
What is __init__.py used for?
python
module
package
python-packaging
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
What does "yield" do in a Python function?
python
yield
generator
What is the best virtual environment for Python
python
virtual environment
venv
best
What is if __name__ == "__main__" in Python?
python
__main__
__name__==
Go to Top