002 Programming-in-Python
002 Programming-in-Python
# Test function
passed = 0
# Output summary
if studentName != "":
reportEntry(report, studentName + "'s compiler ")
percent = passed * 100 / len(testSPLfiles)
reportEntry(report, str_join("Passed ", passed, " tests out of ", len(testSPLfiles), " (", percent, "%)") )
#reportEntry(report, "Executed " + numExecutedTests + " test programs successfully")
compilersTested += 1
Python Types
• Calculate 6 - 4 / 2 : is it 1 or 4?