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, 23.06.2019 21:00
Will this setup result in what kathy wants to print?
Answers: 2
question
Computers and Technology, 23.06.2019 22:20
Learning sign language is an example of a(n) learning sign language is an example of a(n)
Answers: 2
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
question
Computers and Technology, 24.06.2019 08:30
Intellectual property rights are exclusive rights that protect both the created and the creation. ipr offers exclusively what benefits to the person or people covered by it
Answers: 3
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
Questions on the website: 13722360