+ 1
Command for output ("First string, Second string") double quotations r included in the output but parentheses r not...should be?
please answer for python
7 Réponses
+ 10
Double and single quotations frame a sequence of characters to form a string. The brackets frame the string itself as a parameter, so yes. It is
print('string')
and not
print'(string)'
+ 7
print('("First string, Second string")')
+ 4
Are you talking about using print()?
+ 3
Without parentheses:
print('"First string, Second string"')
surrounding double quotes with single quotes
You can also use the \ escape character:
print("\"First string, Second string\"")
+ 1
Nice try sir...but as I enquired parentheses should not be in output
+ 1
absolutely..sir...this is the right answer... thanks for assistance
0
Great Minds...I want the output as I mentioned above...but in python so what would be the code in python to get same output as above