#! /usr/bin/env python3

string = "Stringtheorie"

asciiwerte = []
for c in string:
    asciiwerte.append(ord(c))

# Diese Schleife als List Comprehension
# asciiwerte = [ord(c) for c in string]

print(asciiwerte)

# 65 = A, 97 = a
# ord('a') - ord('A')
asciiwerte[0] = asciiwerte[0] + (97-65)

# List Comprehension = On-the-Fly-Berechnung ganzer Listen
# Kopie von asciiwerte, alternativ zu asciiwerte[:] oder asciiwerte.copy()
ascii_list = [value for value in asciiwerte]

# Neue Liste von Zeichen
char_list = [chr(value) for value in asciiwerte]
print(char_list)

ziel_string = ''.join(char_list)
print(ziel_string)
