C-17-Q040mediumsingle_mcq
The data type used for the dimension input (feet or metres) in the conversion program is:
The data type used for the dimension input (feet or metres) in the conversion program is:
- a
int - b
float - c
str - d
bool
ব্যাখ্যা
A dimension like length can be a decimal value (e.g. 5.5 feet), so float is used to accept fractional input rather than whole numbers only. Using int would discard the decimal part of the measurement.