Friday, October 30, 2015

multi line command or function on command line

if a command is not complete on command line. enter causes "..."(three dots) on the console. It means type remaining part of the command.

>>>def f():
...        print "Hello"
...
>>>f()


... => continued command

No comments:

Post a Comment