
Sept. 29, 2007
6:46 p.m.
Philipp Walderdorff schrieb:
def command(s): print "command:", s
while 1: a = raw_input("a-input") if not a: break command(a)
print "finished"
Warum eigentlich eine rekursion? Würde eine einfache Schleife nicht vollkommen reichen? def command(s): a = "" while not a: a = raw_input("a-input") print a print "finished" Mag sein das ich die Aufgabenstellung nicht so ganz verstanden hab. Grüße Alexander