import sys def f(n): b = bytearray() while n > 0: b.extend(b'xy') n -= 1 f(int(sys.argv[1]))