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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started