Python for Biologists
Lectures
Labs
Resources
Assessment
Schedule
About
GitHub →
← Lab 3
If / else —
making decisions
Branch
▸
if · elif · else — pick one path
▸
Comparisons: > < == >= !=
▸
Loop + decide → tally into a dict
Combine & sort
▸
Combine conditions: and · or · not
▸
Membership & truthiness: in, if count:
▸
Finale: write your own sort
📓 03 · If / else — basics →
📓 04 · If / else — advanced →
← Previous
←
Next →
→
Python for Biologists