C-16-Q061mediumsingle_mcq
int() creates integers from:
int() creates integers from:
- aonly floats
- bonly strings
- cfloats or strings
- donly booleans
ব্যাখ্যা
The int() function builds an integer from a numeric value or text, accepting both floats and strings (as long as the string represents a whole number). Hence its valid inputs are floats or strings.