a = "QUADRAT" for i in range(len(a)): wort = "" for b in a: wort += b+" " print(wort) a = a[-1]+a[:-1]