Post History
Python 3, 99 bytes r=[*range(26)] a="ABCDEFGHIJKLMNOPQRSTUVWXYZ" for i in r+r[-2::-1]:print(" "*(26-i)+a[:i]+a[i::-1]) Try it online!
Answer
#2: Post edited
# [Python 3], 102 bytes- <!-- language-all: lang-python -->
- r=[*range(26)]
a="".join([chr(i+65) for i in r])- for i in r+r[-2::-1]:print(" "*(26-i)+a[:i]+a[i::-1])
[Try it online!][TIO-ktfes5jl]- [Python 3]: https://docs.python.org/3/
[TIO-ktfes5jl]: https://tio.run/##RYwxCoAwDAB3XxE6NZYKVnQo@JLSoYjaOKQSXHx9FReXg@PgzvvKhYdaZQ6tJN5X7SaMTZqV6o5CrMOSRZOZRoStCBAQg0RsfjESrPPe9tGfQnxpBap9N5bQpOApvqSvY60P "Python 3 – Try It Online"
- # [Python 3], 99 bytes
- <!-- language-all: lang-python -->
- r=[*range(26)]
- a="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
- for i in r+r[-2::-1]:print(" "*(26-i)+a[:i]+a[i::-1])
- [Try it online!][TIO-ktfevokn]
- [Python 3]: https://docs.python.org/3/
- [TIO-ktfevokn]: https://tio.run/##K6gsycjPM/7/v8g2WqsoMS89VcPITDOWK9FWydHJ2cXVzd3D08vbx9fPPyAwKDgkNCw8IjJKiSstv0ghUyEzT6FIuyha18jKStcw1qqgKDOvRENJQUkLaIZupqZ2YrRVZiyQzATLa/7/DwA "Python 3 – Try It Online"
#1: Initial revision
# [Python 3], 102 bytes <!-- language-all: lang-python --> r=[*range(26)] a="".join([chr(i+65) for i in r]) for i in r+r[-2::-1]:print(" "*(26-i)+a[:i]+a[i::-1]) [Try it online!][TIO-ktfes5jl] [Python 3]: https://docs.python.org/3/ [TIO-ktfes5jl]: https://tio.run/##RYwxCoAwDAB3XxE6NZYKVnQo@JLSoYjaOKQSXHx9FReXg@PgzvvKhYdaZQ6tJN5X7SaMTZqV6o5CrMOSRZOZRoStCBAQg0RsfjESrPPe9tGfQnxpBap9N5bQpOApvqSvY60P "Python 3 – Try It Online"