![Computers and Technology](/tpl/images/cats/informatica.png)
Computers and Technology, 27.09.2019 00:00, paradisetiyae6903
Write a function called strip_comments that takes as parameters a source file name (string, e. g. a python file), a destination file name (string), and a comment prefix (string) and that removes all comments that start with the prefix string from the first source file and writes the resulting content to the second file whose name is given. for python, the prefix is "#", for c/c++ it could be "//". if a comment starts at the beginning of a line then the entire line is removed from the resulting file. a comment in python and many other languages continues from the prefix string to the end f the line. example: suppose file test2.py has this content:
![answer](/tpl/images/cats/otvet.png)
Answers: 1
Similar questions
![Предмет](/tpl/images/cats/informatica.png)
Computers and Technology, 21.09.2019 11:50, clmorcutt420
Answers: 1
![Предмет](/tpl/images/cats/informatica.png)
Computers and Technology, 23.09.2019 07:10, lazymarshmallow7
Answers: 1
Do you know the correct answer?
Write a function called strip_comments that takes as parameters a source file name (string, e. g. a...
Questions in other subjects:
![Konu](/tpl/images/cats/ekonomika.png)
Business, 28.09.2019 11:50
![Konu](/tpl/images/cats/mat.png)
Mathematics, 28.09.2019 11:50
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/istoriya.png)
History, 28.09.2019 11:50
![Konu](/tpl/images/cats/mat.png)
Mathematics, 28.09.2019 11:50
![Konu](/tpl/images/cats/health.png)
![Konu](/tpl/images/cats/informatica.png)
Computers and Technology, 28.09.2019 11:50
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/health.png)
Health, 28.09.2019 11:50