Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Tsubajashi's full-sized avatar
🎯
Focusing

Tsubajashi Tsubajashi

🎯
Focusing
View GitHub Profile
@Tsubajashi
Tsubajashi / VowelsConsonants.py
Last active July 4, 2019 01:12
Count Vowels and Consonants inside a Sentence in Python
import os
strSentence = input('Enter Sentence here: ')
arrVowels = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']
intVowelCount = 0
arrConsonants = ['b','c','d','f','g','h','j','k','l','m','n','p','q','r','s','t','v','w','x','y','z','B','C','D','F','G','H','J','K','L','M','N','P','Q','R','S','T','V','W','X','Y','Z']
intConsonantCount = 0
for string in strSentence:
for i in arrVowels: