feat: Initial commit
This commit is contained in:
14
Laboratorio6/vocali.py
Normal file
14
Laboratorio6/vocali.py
Normal file
@@ -0,0 +1,14 @@
|
||||
def countVowel(str):
|
||||
c = 0
|
||||
for ch in str:
|
||||
if ch.lower() in "aeiou":
|
||||
c += 1
|
||||
|
||||
return c
|
||||
|
||||
def main():
|
||||
uinput = input("Inserisci una frase: ")
|
||||
print("Il numero di vocali è", countVowel(uinput))
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user