Ich w√ľnschen Euch ein frohes Weihnachtsfest und erholsame Feiertage.

#!/usr/bin/env python3
#-*- coding: utf-8 -*-

import random


def tree(x: int = 10) -> str:
    return "\n".join([" " * (x - n // 2 - 1) + "x" * n
                      for n in range(1, 2 * x, 2)]
                     ) + "\n" + " " * (x - 1) + "I"


def main() -> None:
    print(tree(random.SystemRandom().randint(10, 30)))


if __name__ == "__main__":
    main()
            x
           xxx
          xxxxx
         xxxxxxx
        xxxxxxxxx
       xxxxxxxxxxx
      xxxxxxxxxxxxx
     xxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxx
   xxxxxxxxxxxxxxxxxxx
  xxxxxxxxxxxxxxxxxxxxx
 xxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxx
            I

Author: Bob

Created: 2023-12-24 So 13:37