[IPython-user] Newbie - functions at prompt, functions in script
Gary Taylor
squeaky at sdf.lonestar.org
Thu May 19 13:23:45 CDT 2005
Hi,
1. When I'm at the prompt and want to construct this simple
"program", how do I do that when I need to hit enter after
the line that reads print "First Line." ?
def newLine():
print "my function"
print "First Line."
newLine()
print "Second Line."
2. When I put this in a script, it only works if def
newLine() is before newLine() . Does it have to be first
or am I doing something incorrect?
Thanks,
Gary
--
squeaky at sdf.lonestar.org
More information about the IPython-user
mailing list