Skip to content

Instantly share code, notes, and snippets.

@tdhopper
Created December 14, 2011 01:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdhopper/1474727 to your computer and use it in GitHub Desktop.
Save tdhopper/1474727 to your computer and use it in GitHub Desktop.
g := Module[{str, lis, numScores = 12},
str = InputString[];
lis = ToExpression[StringSplit[str, "+"]];
If[Length[lis] != numScores,
Beep[];
Print[lis];
Speak["Length is " <> ToString[Length[lis]]],
Speak[Total[ToExpression[StringSplit[str, "+"]]]];
Print[Total[ToExpression[StringSplit[str, "+"]]]];
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment