Skip to content

commit-live-students/005-count-word

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Programming Basics - Assignment

Problem Statement:

Write a function that should count word occurance in file.

  1. Define function 'countWord' which will accept two arguments, filepath and word to find inside file.
  2. You can create your own file or you can use given testfile.txt inside files directory.
  3. Calculate word occurance. Function should return count.
  4. Function should pass all test cases.

Instructions:

  • Program should be written in file count_word.py

  • Function name should be countWord.

  • Input

     File = Learning from machine, machine learning.
    
     Type:  File path and string
     Value: Word = learning (case sensative)
    
  • Expected Output

      Type:  Integer
      Value: 1
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages