The problem is that the
is interpreted by the '''
string, but you want it to be left in place and processed by the inner "
string.
The simplest solution is to use an r-string for the outer one; note the r'''
on the first line:
string=r'''# Initializing Function named main()
def main () :
str1 = None
str2 = None
age=16
str1=str(input())
str2=str(input())
print("Entered Name: {}
".format(str1))
print("Entered Website:{}".format(str2))
# Calling the main Function
main()'''
With that change, the inner
should work correctly and you'll probably no longer need to remove it.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…