Add capitalization to loop code
authorJustin Kitzes <jkitzes@berkeley.edu>
Mon, 4 Mar 2013 18:58:07 +0000 (10:58 -0800)
committerW. Trevor King <wking@tremily.us>
Fri, 8 Nov 2013 16:58:57 +0000 (08:58 -0800)
python/testing.md

index 4829388253d15e4649bbf1563adfb00126ac5fae..d4911ef4d349ace0f32756ffa139171a8371a64b 100644 (file)
@@ -218,7 +218,10 @@ written this code in the previous lesson, so we can simply erase our existing
        
            # Load table
            tab = ml.csv2rec(filename)
-       
+               
+               # Standardize capitalization of focusanimal
+               focusanimal = focusanimal.capitalize()
+
            # Loop through all records, countings recs and animals
            totalrecs = 0
            totalcount = 0