ich bin sehr unerfahren was Programmieren angeht und habe mich nach ein paar Videos mal an einem Art Zahlen-/Buchstabengenerator versucht:
Code: Alles auswählen
from random import shuffle
liste = "A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Ä Ö Ü ẞ \
a b c d e f g h i j k l m n o p q r s t u v w x y z ä ö ü ß \
1 2 3 4 5 6 7 8 9 0 \
° ^ ! " "§" "$" "%" "&" "/" "{" "}" "(" ")" "[" "]" "=" "?" "\" ` ´ + * ~ # ' , ; . : - _ < > | ".upper().split()
shuffle(liste)
for länge in range(2):
el1=liste.pop()
print("{}".format(el1))Danke im Vorraus,
Vinz
