def factorial (x):
if x <= 1:
return 1
return factorial (x-1)*x
def print_hallo_rec (x):
if x <= 1:
return
print "Halo Welt"
print_hallo_rec (x-1)
return
def print_hallo_it (x):
i = 0
while i < x:
print "Hallo Welt"
i = i+1
print factorial (7)
print_hallo_rec (4)
print_hallo_it (4)