Python Merge the lines between triple single quotes and then replace the starting quote with '#'

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Python Merge the lines between triple single quotes and then replace the starting quote with '#'


'''
Created on Mar 11, 2017

@author: XXZ
This file is to demonstrate the word frequency counter. This is a very
important practical

'''



Required Output:


#Created on Mar 11, 2017 @author: XXZ This file is to demonstrate the word
frequency counter. This is a very important practical



(I want to count it as a comment)









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard