By using some of the methods and escape sequence (double quotes escape sequence ") that can be added with the variable while printing the value of the variable.
The methods/ways to print the double quotes with the string variable are used in the given program, consider the program and see the output...
#declare a string
str1 = "Hello world";
#printing string with the double quotes
print(""%s"" % str1)
print('"%s"' % str1)
print('"{}"'.format(str1))
By using some of the methods and escape sequence (double quotes escape sequence ") that can be added with the variable while printing the value of the variable.
The methods/ways to print the double quotes with the string variable are used in the given program, consider the program and see the output...
Output
need an explanation for this answer? contact us directly to get an explanation for this answer