Commit 6dc47455 authored by drshrirang's avatar drshrirang Committed by Maxim Belkin

03-lists.md: fix upper bound when slicing a string (#678)

Fixes: swcarpentry/python-novice-inflammation#676
parent 85c948f7
......@@ -342,7 +342,7 @@ binomial_name = "Drosophila melanogaster"
group = binomial_name[0:10]
print("group:", group)
species = binomial_name[11:24]
species = binomial_name[11:23]
print("species:", species)
chromosomes = ["X", "Y", "2", "3", "4"]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment