subject

Write a program that reads a file called 'test. txt' and prints out the contents on the screen after removing all spaces and newlines. Punctuations will be preserved. For example, if 'test. txt' contains: This is a test file, for chapter 06. This a new line in the file! Then, your program's output will show: Thisisatestfile, forchapter06.Thisanewlineinthefile! Hint: Consider using the 'strip()' and 'replace()' functions.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:30
The cm is responsible for overseeing the actions of the crisis management team and coordinating all crisis management efforts in cooperation with disaster recovery and/or business continuity planning, on an as-needed basis
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
In which of the following ways can using test-taking tips you? a. you can focus on the information that you need to study. b. you will see the answers to the test. c. you will study more. d. you will be less organized.
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
To move a file or folder in microsoft windows, you can click and hold down the left mouse button while moving your mouse pointer to the location you want the file or folder to be, which is also known as.
Answers: 3
question
Computers and Technology, 24.06.2019 11:00
Under the home tab, where can a user find options to change the bullet style of an outline? in the slides group in the font group in the paragraph group in the drawing group
Answers: 1
You know the right answer?
Write a program that reads a file called 'test. txt' and prints out the contents on the screen after...
Questions
question
History, 01.12.2020 01:00
question
Arts, 01.12.2020 01:00
Questions on the website: 13722359