HowTos
Free Video Tutorials
Written Tutorials
💲Udemy Courses
🛠Daily Python Projects
Python Shell
About Us
Home
Python How-To Questions
Send an email from Gmail.
email
Download a youtube video with pytube.
youtube
pytube
Create matplotlib graphs.
python
matplotlib
Rename a file.
python
files
Get today's date and convert to string.
python
datetime
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
Install dependencies.
python
flask
install
dependencies
Choose the best string formatting: % vs. format vs. f-string literal.
'.format'
string formatting
f-string
'%'
Flush the output of the print function.
python
print
output
flush
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
Profile a script.
python
profile script
Reverse a string.
python
string
reverse
Convert two lists into a dictionary.
python
convert
list-to-dictonary
Convert an integer into a string.
python
convert
integer-to-string
Generate random strings with upper case letters and digits.
python
random
string-uppercase
generate
Extract extension from filename.
python
filenames
file-extension
Print to stderr in Python.
python
stderr
printing
zen-of-python
Generate random integers between 0 and 9.
python
random
integer
Use a pythonic way to create a long multi-line string.
python
string
multilinestring
multiline
Measure elapsed time in Python.
python
time
measure
Install specific package versions with pip.
python
pip
package version
install
Read from stdin (standard input).
python
stdin
read
Install pip on macOS or OS X.
macos
install pip
os x
Get the class name of an instance.
python
class name
instance