Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions

Question

Hpo Perbedaan gorak agem pada laki - laki dan Prempuon?

Answered: 1 week ago