C-16-Q050mediumsingle_mcq
Given b = 'This is a string variable', the data type of b is:
Given b = 'This is a string variable', the data type of b is:
- aint
- bfloat
- cstr
- dbool
ব্যাখ্যা
In Python, any text enclosed in quotation marks is a string, whose type is str. Since b is assigned a sequence of characters in quotes, its data type is str.