Python · Writing & Running a Program

Is a triple-quoted string like """ ... """ on its own a real multi-line comment in Python?

Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.

Get it on App StoreGet it on Google Play

This is one card from the KnowCard library — thousands more across SAP, Linux, Python and more. In the app you get the answer, AI explanations, and cards that come back right before you would forget them. Free to start on iOS, Android or the web.

More in Writing & Running a Program

What does this print? ``` print("a") # print("b") print("c") ```
What's the difference between a statement and an expression in Python?
What does this print? ``` x = True if x: print("Hello World") ```
What does this print, and what's the trap? ``` x = False if x: print("Hi"); print("Bye") ```
What does this print? ``` var = ( 10 + 10 ) print(var) ```
Outside of brackets, how do you continue a single statement onto the next physical line, and what's the catch?

Start learning today

Free to start — download the app or use it in your browser.

Get it on App StoreGet it on Google Play