Home python Rows in Python

Rows in Python

Author

Date

Category

Dana string containing Russian-language text. Find the number of words starting with the letters “E”


Answer 1, Authority 100%

Words = "Apple String Yeger More"
Count = 0.
For Word in Words.Split ("):
   IF Word.Strip () [0] == 'E':
     Count + = 1
PRINT (COUNT)

Answer 2, Authority 100%

Example:

string = '...'
Result = Len (List (Lambda S. S.Lower (). StartSwith ('E'), string.split ())))
PRINT (RESULT)

Answer 3

str = 'Two more firings were condensed by hunts'
Print (('' + Str) .Lower (). Count ('E'))

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions