Question: Create and save a file with 5 sentences (using notepad), path for file - c: ewtest.txt. Read the content of the file, but save only

  • Create and save a file with 5 sentences (using notepad), path for file - "c: ew\test.txt".
  • Read the content of the file, but save only every second sentence of the file. (sentences nr. 2 and 4.)
  • Find and store the longest word in each sentence.
  • Display 2 longest words on the screen.
  • Remove the first 3 letters of each word.
  • Use sets functionality to find and display symmetric difference within this 2 words.
  • Use at least 2 functions somewhere to get the highest grade.
  • it shoul be pyhton

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!