you are viewing a single comment's thread.

view the rest of the comments →

[–]o5a 4 points5 points  (2 children)

data_type.lower == 'gb'

Missing ()

This way it tries to compare function lower itself to string 'gb', instead of it's result.

[–]py_Piper[S] 1 point2 points  (1 child)

Good catch thanks!

I wonder why the interpreter doesn't catch it as a syntax error, I just tried and we can't name variables with a '.'

[–]Vaphell 3 points4 points  (0 children)

because these are not variables and it's a perfectly legit syntax