Syntax problem


I met a syntax problem with my code as followed:
def ave(numbers):
return ave
I don't know where the error is...please help:tired_face:


:smiley: in python { } not means block of code.

for say here is block of some thing such as if .... : or for ..... : or anything else, press enter button and use Tab buttom( or 4 space ) to create a indent, now you are in that block. see below:

def phelo():
   print "hello world!"


in fact, i had used Tab buttom....


I know where the probleme is now. there should not have{ } after the function:weary:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.