From CSC108 class we've learned,by following function design recipe, the contract should be place like below:
def whatever(a,b):
'''(int, int) -> int
'''
It runs smoothly and shows no error in WingIDE.
But for CSC148 class, the example is like:
always shows syntaxerror.
However, the contract error does not affect running body of the function.But it's still indicates error in WingIDE.
Why.
No comments:
Post a Comment