Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] Type "help", "copyright", "credits" or "license" for more information. >>> def f1(): ... return 4 ... Traceback (most recent call last): File "", line 1, in IndentationError: expected an indented block (, line 2) >>> def f1(): ... return 4 ... >>> def f2(): ... print 4 ... >>> f1() 4 >>> f2() 4 >>> x = f1() >>> x 4 >>> x = f2() 4 >>> x >>> type(x) >>> def f3(): ... return 3 ... print "done" ... >>> f3() 3 >>> print "done" done >>> def f(x): ... x=5 ... print x ... >>> x=9 >>> x 9 >>> f(x) 5 >>> x 9 >>>