Blog tag:  python

  • #11 Python and empty strings behaviour

    I am working on an app programmed with Python and Kivy. I was getting a strange bug and ended up tracking it to this line: if string.startswith(word): stuff I defined "word" empty by default (word=""), but that resulted in an unexpected behaviour: it always checks True, even if the string var ...

    Tags: programmingpython
    2018-09-08 16:45:00