Nov-23-2022, 06:43 PM
okay,
so from what i understood, is even if the the value is a str initially, it will be converted only if it's comprised of digits....otherwise it's a ValueError, and if it's another kind of data type not compatible with being converted into an int - it's a TypeError. understood correctly ?
what does the 'base 10' means ? (invalid literal for int() with base 10)
thank you
so from what i understood, is even if the the value is a str initially, it will be converted only if it's comprised of digits....otherwise it's a ValueError, and if it's another kind of data type not compatible with being converted into an int - it's a TypeError. understood correctly ?
what does the 'base 10' means ? (invalid literal for int() with base 10)
thank you