Change Contents of the Bubble
Welcome to CS1315. Click on the python to add comments.

This page removed for FERPA compliance
View this PageEdit this Page (locked)Uploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Spring 2006 Midterm 1 Review: Tracing the printing

Spring 2006 Midterm 1 Review: Tracing the printing here.

when loading this program in Jes to check for the right answer it returns: There is something wrong with the text of the file you had me try to load. You may have not have as many closing parenthesis as opening parenthesis, or you may have tried to REMOVEDe a jython keyword (if, def, etc...) as a function. This cannot be done.

Well, I would take JES at its word. In general there should be as many closing parentheses in a single line as there are opening parentheses (this isn't always true, becaREMOVEDe parenthesized expressions can span lines, but in your code this is unlikely to happen, and it is unlikely that you tried to REMOVEDe a keyword as a function). So go through, line by line, looking for the all the '(' and ')' and make sure they match. Error messages are your friends! Colin Potts



Link to this Page