Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text=input()
- pSamohlasek=0
- for x in text:
- if x == "a":
- pSamohlasek=pSamohlasek+1
- elif x == "e":
- pSamohlasek=pSamohlasek+1
- elif x == "i":
- pSamohlasek=pSamohlasek+1
- elif x == "o":
- pSamohlasek=pSamohlasek+1
- elif x == "u":
- pSamohlasek=pSamohlasek+1
- print("Počet samohlásek je",pSamohlasek)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement