Question: A file is read from input into file _ input, and my _ computer is assigned with the string literal Ken's Computer: G: ? ?

A file is read from input into file_input, and my_computer is assigned with the string literal Ken's Computer: G: ?????? Personal ??????. Modify the string literal to:
Replace the whitespace after 'Computer:' with a newline character.
Ensure that all special characters in my_computer are output.
Ex: If the input is Flowers . png, then the output is:
Ken's Computer:
G: ?????? Personal ?????? Flowers.png
file_input = input ()
3 my_computer = "Ken's Computer: G: \Personal \"|
4 my_computer = my_computer. replace (' Computer: ','}
('
5 my_computer += file_input
6
7 print(my_computer, end='')
8 print(file_input)
 A file is read from input into file_input, and my_computer is

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!