C-16-Q085mediumsingle_mcq
To print extra text together with a variable in print(), we:
To print extra text together with a variable in print(), we:
- awrite the text and the variable name without any separator
- bwrite the text in quotes, then a comma, then the variable name (no quotes around the variable)
- cwrite the variable name inside quotes too
- dcannot mix text and variables
ব্যাখ্যা
To combine literal text with a variable, the text is written in quotes and separated from the variable by a comma, while the variable name itself stays unquoted. print() then outputs the text followed by the variable's value.