initial commit
This commit is contained in:
8
buchstabenzählen/main.py
Normal file
8
buchstabenzählen/main.py
Normal file
@@ -0,0 +1,8 @@
|
||||
# -*- coding: ansi -*-
|
||||
satz = input("Bitte gib einen Satz ein: ")
|
||||
|
||||
buchstabe = input("Welchen Buchstaben m<>chtest du z<>hlen? ")
|
||||
|
||||
anzahl = satz.count(buchstabe)
|
||||
|
||||
print(f"Der Buchstabe '{buchstabe}' kommt {anzahl} mal im Satz vor.")
|
||||
Reference in New Issue
Block a user