When I run the code, I get this compile error:
IndentationError: unindent does not match any outer indentation level
I think the error occurs because of the return in the last line. What should I do differently?
def whileexample(): n=15;i=0; # Mit Semikolon = Variablen in einer Zeile schreiben while i<=n: if n>20: print n, "ist zu groß" break print "%d : %7d" % (i,2**i) i=i+1 else: print n+1, "Zweierpotenzen berechnet." return whileexample()
printstatement?