C-16-Q049mediumsingle_mcq
Given a = 'c', the data type of a is:
Given a = 'c', the data type of a is:
- aint
- bfloat
- cstr
- dbool
ব্যাখ্যা
The value 'c' is enclosed in quotation marks, so Python stores it as text of type str, even though it is a single character. Python has no separate character type, so single characters are also strings.