What to use when you want to convert a string or number to a string or number in Python Str (variable) when you want to convert to a character string When you want to convert to int, int (variable)
isdigit (variable) What is in the variable True if only numbers Returns False if it contains anything other than a number Because the decimal point is also treated as a character string Float conversion is not possible unless you do something else as a cushion
Recommended Posts