Computer Science, asked by substud09, 9 months ago

Write a function counteven() to read a file and count how many even no. in file "new.txt".

Answers

Answered by Anonymous
0

Answer:

We will be doing the snap tutorial, so bring the book and the pamplet thst contains your activation code. Then, we will discuss file structure as in the other classes and look at doing a little tutorial as follows.

On the fly create a new folder on the desktop. In that folder, populate it with a new Microsoft Word 2007 word file and change the default name of the file to cis103.docx. Similarly create a new Excel 2007 file esignated as cis103.xlxs, a new powerpoint file designated as cis103.pptx and a new text file designated as cis103.txt. Open cis103.docx and cis103.txt and enter your name. How does the size of each of these files grow.

Look at the types of selection. Clicks, ctrl clicks, shift clicks and ctrl A. Use ctrl A to set up the situation of copying all these files to a flash drive (It wouldn't be a bad idea to bing some flash memory). Now, we'll change our focus to the flash memory and use send to to move this back onto my documents.

Once done with the tutorial on files, let's enter MS Word 2007 and look at the differences between this version and the previous.

Answered by BrainlyEmpire
15

Answer:

.

.

.

Write a Python program to count the number of lines in a text file.

Contain of text.txt. ...

Sample Solution:-

Python Code: def file_lengthy(fname): with open(fname) as f: for i, l in enumerate(f): pass return i + 1 print("Number of lines in the file: ",file_lengthy("test.txt")) ...

Flowchart:

Python Code Editor:

Similar questions