C-16-Q048mediumsingle_mcq
Text inside a string variable must be enclosed in:
Text inside a string variable must be enclosed in:
- aparentheses ()
- bsingle quotation marks ' '
- cbrackets [ ]
- dcurly braces { }
ব্যাখ্যা
String text must be enclosed in quotation marks, such as single quotes ' ', to tell Python it is textual data. Without quotes Python would treat it as an identifier or syntax error.