Question: Kindly give the coding and output screenshot in Python IDLE. Pls take the screenshot and upload. You can create a sample file as per your

Kindly give the coding and output screenshot in Python IDLE. Pls take the screenshot and upload. You can create a sample file as per your convinience.

1. Create a text file , write data into it and display the contents using read function 2. Write a program TO READ the contents of the file try.txt and: i. Display them a character at a time ii. Count and display the number of characters in the file iii. Count and display the number of words in the file iv. Count the number of alphabets and digits and special characters in the file v. Replace all occurrences of space with '@' vi. Count the number of occurrences of the and these 3. Lines: i. Count the Number of Lines ii. Count the number of lines beginning with 'A' iii. Capitalize the first letter of each line

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!