
Understanding Python Data Types: String and Integer
Variables in Python can store different types of data. String represents a text type, integer, float and complex number are numeric types. This article focuses on string and integer data types and, especially, on problematics to convert from string to integer including methods, error handling, practices and tips.
Firstly, definitions of both types of data should be done. String could be considered as a sequence of character data. Here it is important to point out that single quotes, double quotes, and triple quotes are used in a Python code to generate strings with varying content. In its turn, integer is a sequence of numeric symbols representing negative or positive whole number without decimal.
Read more