PYTHON : DATA FILE HANLING
Write a Python program to count the word ^if ^ in a text file abc.txt [. file=open("abc.txt","r") c=0 line = file.read() word = line.split() for w in word: if w=='if': print( w) c=c+1 print(c) file.close() Write a method in python to read lines from a text file DIARY.TXT and display those lines which start with the alphabets P. ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- python data file hanling
- data files in python
- basic python programming for loops and reading files
- write text to csv file python weebly
- file handling
- introduction to computers programming input and output
- reading and writing data files with python
- text file exam based questions
- c h a p r 2 file handling in python
Related searches
- data file formats definition
- types of data file formats
- common data file formats
- microsoft outlook data file error
- outlook data file missing
- microsoft outlook data file management
- outlook data file missing error
- outlook data file gone
- outlook 2016 data file cannot be accessed
- outlook 2013 data file management
- data file management outlook 2016
- outlook 2010 data file path