← Back to Strings
Question 4
Two Ways To Quote
Two Ways To Quote
Python accepts single or double quotes around a string, and both make the same kind of value. The city is already stored with single quotes; declare province holding Ontario with double quotes around it, then print the two words on one line separated by a single space (print with two arguments does that). No input is read; the output is one line, the city then the province.
Expected Output:
Oshawa Ontario= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
StringsVariables
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.