B04B-2019S-C1 – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  

Login
[lwa]



Exam Questions-CBSE12A-2019-B04B-C1 #PYTHON#7152    siteicon   siteicon  

Problem Statement - B04B-2019S-C1

Write a method/function ISTOUPCOUNT() in python to read contents from a text file WRITER>TXT, to count and display the occurrence of the word “IS” or “TO” or “UP”.

For example:

If the content of the file is

IT IS UP TO US TO TAKE CARE OF OUR SURROUNDING. IT IS NOT POSSIBLE ONLY FOR THE GOVERNMENT TO TAKE RESPONSIBILITY

The method/function should display

Count of IS TO and UP is 6

Solution

TC++ #7152


Share

CSKC| Created: 11-Apr-2019 | Updated: 11-Apr-2019|CBSE12A-2019









Back