[Tutor] Newbie!! many questions

Deirdre Saoirse deirdre@deirdre.net
Mon, 29 Jan 2001 17:15:28 -0800 (PST)


On Mon, 29 Jan 2001 AquaRock7@aol.com wrote:

> !).  There is a way to define and call functions in Python, but is
> there a way to define and call a subroutine?  Or a way to jump to
> another line of code? i.e.:

def negativemsg():
	print "this number is negative"

Get out of the habit of thinking GOTO.

> n = input("Type a number: ")
> if n > 0:
>        GOTO negativemsg