I’m not familiar with the particular tutorial you’re referencing, but the error you mention is caused when a particular script attempts to create two variables with the same name in the same scope.
Ah, yeah. Shame those are just left in. Might be good blog fodder to write a few posts detailing all of the errors in those tutorial projects, with quick fixes.