C-16-Q126mediummulti_combo_mcq
Which of the following are casting (conversion) functions in Python?
Which of the following are casting (conversion) functions in Python?
int()float()str()
- ai and ii only
- bii and iii only
- ci and iii only
- di, ii, and iii
ব্যাখ্যা
int(), float(), and str() are all built-in casting functions that convert a value to an integer, a floating-point number, and a string respectively. Since all three perform type conversion, the full set is correct.