C-16-Q003mediumsingle_mcq
Which of the following is the correct syntax to print Bangla text in Python?
Which of the following is the correct syntax to print Bangla text in Python?
- a
print(আমি বাংলাদেশকে ভালবাসি) - b
print('আমি বাংলাদেশকে ভালবাসি') - c
print = 'আমি বাংলাদেশকে ভালবাসি' - d
print<'আমি বাংলাদেশকে ভালবাসি'>
ব্যাখ্যা
The text to be printed must be enclosed in quotes and passed inside the parentheses, as in print('আমি বাংলাদেশকে ভালবাসি'). Without quotes Python treats the words as undefined names, and the other forms are invalid syntax.