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
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
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
Read from stdin (standard input).
python
stdin
read
Read a file line-by-line into a list.
python
string
file
readlines
Print coloured text on the terminal.
python
output
terminal
ansi-colors
Find current directory of a file.
python
directory
file-directory
Delete a file or folder.
python
directory
delete-file
file-io
Check if a given key already exists in a dictionary.
python
dictionary
dictionary-key
Copy a file.
python
file
filesystems
file-copying
copy
List all files of a directory.
python
directory
list files
Execute a program or call a system command.
subprocess
python shell
terminal
command
Check whether a file exists without exceptions.
python
file
file-exists
Duplicate a file.
python
duplicate file
Append text in a text file.
python
append text
Create a new file.
python
create file
write content in file
Check if a text file is empty.
python
file
check if empty
Create a flask app.
create
app
flask
render template
html flask
python.
Top Python What Questions
How to work with database files with Python and SQLite
python
sqlite
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
What is the difference between venv, pyvenv, pyenv, virtualenv, virtualenvwrapper, pipenv?
python
venv
virtualenv
pipenv
What ipython
pyenv
virtualenvwrapper
pyvenv
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
Why is reading lines from stdin much slower in C++ than Python?
python
readlines
c++
What is __init__.py used for?
python
module
package
python-packaging
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