return may only occur syntactically nested in a function definition, you don't have one.
On Mar 19, 9:06 am, tandnk50 <[email protected]> wrote: > I wrote statements but invalid syntax and i don't know the problem, > for example : > def func(): for i in range(3): > for j in range(2): > if i>1 : > print i > else: > print j > return dict() (or any statement ( eg, print 'hello')..) > > but invaliad syntax at return ... > ?? > how do i fix ? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

