[Tutor] calculator will not multiply

Kent Johnson kent37 at tds.net
Sun Jan 18 16:58:33 CET 2009


On Sun, Jan 18, 2009 at 10:37 AM, David <david at abbottdavid.com> wrote:
> Everything else works + - / but not *
> why?

> compute(sys.argv[1], sys.argv[2], sys.argv[3])

Because * is a special character to your shell. Probably your shell is
expanding the * to a list of files. Try printing sys.argv from within
your program, or quoting the * on the command line.

Kent


More information about the Tutor mailing list