Compare commits
No commits in common. "c6ad964780f5dda47ba5145fc1297a9043a26fe0" and "674871cf8a4740ee1e362d448b3639f393cede44" have entirely different histories.
c6ad964780
...
674871cf8a
2 changed files with 0 additions and 12 deletions
bedingungen_und_schleifen
|
@ -1,3 +0,0 @@
|
|||
for i in range(10):
|
||||
i += 1;
|
||||
print(i ** 2);
|
|
@ -1,9 +0,0 @@
|
|||
text = input("Gib eine Zeichenkette ein: ")
|
||||
haeufigkeit = {}
|
||||
|
||||
for buchstabe in text:
|
||||
if buchstabe.isalpha():
|
||||
haeufigkeit[buchstabe] = haeufigkeit.get(buchstabe, 0) + 1
|
||||
|
||||
for buchstabe, anzahl in haeufigkeit.items():
|
||||
print(f"{buchstabe}: {anzahl}")
|
Loading…
Add table
Reference in a new issue