No products in the cart.

Wap in python to sort vowels …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Wap in python to sort vowels and consonants
  • 1 answers

Aries 24 3 years, 9 months ago

Text= input("Enter a string") count=0 #for vowles for x in Text: if x in "aeiou": count+=1 print("No.of volwels in the string are:",count) #for consonants count=0 for x in Text: if x in"bcdfghjklmnpqrstvwxyz": count +=1 print ("No. of consonants are:", count) #for spaces count=0 for x in Text: if (x==" "): count +=1 print ("No. of spaces are:", count) #in same way find dots, commas, etc.
http://mycbseguide.com/examin8/

Related Questions

What is alu
  • 1 answers
Write a program for swapping two numbers?
  • 0 answers
Write a program for swapping two numbers
  • 1 answers
Define packages
  • 0 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App