C-16-Q073mediumsingle_mcq
After y = str(2), the value of y is:
After y = str(2), the value of y is:
- a
2(an int) - b
2.0 - c
'2'(a string) - dTrue
ব্যাখ্যা
str() converts the integer 2 into its text form, giving the string '2'. After conversion the value is a str, so it is no longer a number that can be used in arithmetic.