Python by Examples
Search this site
Starting
Download & Install
Help
argparse
ValueError
Biopython
Examples
Install Biopython
Data structures
Dictionary
Lists
Debugging
Error
TabError
Error handling
Check Python version
Type checking (raise)
File operations
File commands
Files: read & write
Functions
Loops
For loops
if else ...
List Comprehension
Math
DataFrame
Machine Learning
Matrix Calculations
Statistics
types
Packages
Create own modules
Import Modules
Install packages
python script
Parallel processing
pool.map - multiple arguments
Plot
barplot
colors
matplotlib
Print
Error
Strings
comparison
Get safe character string
str() and repr()
System
Environment
External Commands
Time
WWW
CGI script
Download webpage
Graphics
Sitemap
Strings
>
comparison
String comparison
equal:
compare two strings
>>> s1='hello'
>>> s2='hello'
>>> s1
==
s2
True
match substring
: check for substring in string
>>> s1='metagenomics'
>>> s2='genomics'
>>> s2
in
s1
True