0
For printing "hello world!" with quotation, how to write the print statement?
2 Antworten
+ 7
a) What hinanawi said,
b) You can use both single and double quotes for strings in python and within the string, you can use the other type without having to escape them. So both of these work too:
print(' "Hello World!" ') # double quotes within single quotes
print(" 'Hello World!' " ) # single quotes within double quotes
+ 3
with quotations:
print("\"hello world\"")