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

Looking for the book? They have it at the Engineer's Bookstore at 748 Marietta St NW. Here is there website: http://www.engrbookstore.com/ - Monica

Hotspots: Slides and CodeTA CornerComments?AnnouncementsFAQStatic Webspace
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 use 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, because parenthesized expressions can span lines, but in your code this is unlikely to happen, and it is unlikely that you tried to use 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