String
String
v = ['a','e','i','o','u']
str1 = str.lower()
vc=cc=0
for i in str1:
if i in v:
vc += 1
else:
cc += 1
print("Vowel count: ",vc)
2) str = input("Enter a string: ")
lc=uc=dc=wc=sc=0
for i in str:
if i.islower():
lc += 1
elif i.isupper():
uc += 1
elif i.isdigit():
dc += 1
elif i.isspace():
wc += 1
else:
sc += 1
print("Lowercase count: ",lc)
print("Uppercase count: ",uc)
print("Digit count: ",dc)
print("Whitespace count: ",wc)
4) str = input("Enter a string: ")
rstr = str[::-1]
print(rstr)
7) str = input("Enter a string: ")
rstr = str[::-1]
if str == rstr:
print("Palindrome string")
else:
print("Not a palindrome string")