• + 0 comments

    The .strip()-part isn't actually necessary, as int() uses it internally anyway. But back when I wrote the code I didn't know that. :p

    It's basically one of the methods defined by the str-type; it removes all whitespace characters from the beginning and end of a string.

    Example:

    my_string = "  Hello  "
    my_string.strip() == "Hello"